post_type_exists not working in plugin

I have installed my two own plugin in wordpress and I am using post_type_exists( “post_slug” ) in my first plugin to check that post type exist then perform some actions but it always returns false. As I have registered custom post in my second plugin.

Any help should be appreciated.

Read more here: post_type_exists not working in plugin

Leave a Reply

Your email address will not be published. Required fields are marked *