How can I delete or hide comments from a custom post type? Disable comments in a custom post type

Are you looking for the best way to hide posts from custom post types or completely delete posts from custom post types? If yes, the solution will be used to register custom post types. Ideally, the custom post type is the same as the page and post, and if these functions are allowed, all the features of the page and post will be inherited. You can control how the custom post type supports various functions, but it is difficult to control the functions supported by the theme of the custom post type or the custom post type in the third-party plug-in.
Therefore, you should learn how to delete comments or other features supported by unwanted custom post types on your website. This will be a very simple step because it helps to remove the feature of custom post types that are not needed in word press. As mentioned in \
In addition, the following code is the function of the topic. You can register the comment type in PHP to test how to delete the comment type\/**
*Custom post type – register_post_type ()
*@Description njengah tutorial custom post type example
*@Link- https:\/\/gist.github.com\/Njengah\/839466b773085ac2430772e081357cee
*
*\/
Add_action (\
Function njengah_tutorial_cpt (){
$labels = array(
\
\
\
\
\
\
\
\
\
\
\
\
\
\
);
$args = array(
\
\
\
\
\
\
\
\
\
\
\
\
“capability_type”=>“page”,
\
\
\

Author:

Leave a Reply

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