Custom post types not being found
-
One thing I noticed when using the plugin is that my custom post types were not being matched by this plugin.
Most custom post types are added on
init
event. This plugin also sets everything up oninit
, but it never sets a priority. This causes vcaching plugin to fire its actions before my plugins ever get the chance to register my CPTs.I would suggest that vcaching increase the
init
priority above the default 10 value.Also, the
Purge from Varnish
admin list buttons only get added topage
andpost
post types. That’s because these two post types are hardcoded into the plugin:class VCaching { protected $postTypes = array('page', 'post'); }
Can this array please be appended with
get_post_types()
?Thanks.
- The topic ‘Custom post types not being found’ is closed to new replies.