No description
- PHP 100%
| Classes | ||
| disable-post-types.php | ||
| readme.html | ||
<section>
<h3>keep</h3>
<p>does nothing</p>
</section>
<section>
<h3>hide</h3>
<p>
attempts to remove the post type from the wordpress admin ui without actually removing it: removes admin menu entry,
removes 'new $post_type' from admin bar and forces the $post_type to be non-public and hidden via 'register_post_type_args'
</p>
</section>
<section>
<h3>disable</h3>
<p>
blocks access to posts of a given type by filtering capabilities:
if a logged-in user tries to work on a post of that type, they are denied via do_not_allow
</p>
</section>
<section>
<h3>unregister</h3>
<p>tries to completely unregister the $post_type at 'init' with very late priority</p>
</section>
<section>
<h3>prevent</h3>
<p>prevents a $post_type by skipping the registration in 'register_post_type_args': can break wordpress.</p>
</section>