[ad_1]
I *think* setting the CPT to public
in the register_post_type args should result in the CPT being available harrycustom.
hope this helps,
frank
Just a heads up, I have 'public' => true, in my register_post_type( 'mycustompost', $args ); but still no ao_metabox on mycustompost, Maybe the critical css condition though is totally different.
- This reply was modified 1 hour, 20 minutes ago by drazon. Reason: explanation
ah, so it does appear in critical CSS?
as far as metabox; by default it only appears on posts/ pages, but you can use the autoptimize_filter_metabox_screens filter to add whatever post type you wish to the screens array 🙂
just checked…I confirm, setting public to false hides the custom post type from the critical css but if set to true then it is shown.
Thanks for the filter Frank I will use it.
