p.p.s. using the ‘after_setup_theme’ action in the theme to register the CPT instead of the ‘init’ action makes it work without any changes to the plugin. So that’s probably a good workaround. Unless there’s another hook that can be used in the plugin that will work when CPTs are registered with ‘init’
Perhaps it would make sense for the plugin to use ‘wp_loaded’ instead? Although it works fine when I register my CPT via ACF. Anyway I have a workaround and we know the issue has to do with when the timing of when the theme registers the CPTs and when your plugin looks for the CPTs so I’ll leave that with you. Thanks for being so responsive!
-
This reply was modified 3 months, 3 weeks ago by
takeok.