Removing the content restriction metabox

When using Restrict Content Pro, the "Restrict this Content" meta box is automatically loaded on all public registered post types, but sometimes you may want to remove it from certain post types. This tutorial will walk you through the process of removing the meta box from a specific post type.

For example, to remove the meta box from the "books" post type, use this:

An array of post types is passed to the filter with the $post_types variable. All we need to do is add the name of our post type to the array, and then return the modified array.

You can set as many post types as you want to be excluded. To remove the meta box from both "books" and "page", use this:

You can continue adding as many post types as you need. It's that simple!