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


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: