• Resolved oliver1979

    (@oliver1979)


    When I edit a post or page, a post/meta box (class-meta-box-content-permissions.php) appears at the bottom where I can restrict access to specific roles and store a custom error message.

    How can I include this box with a custom post type created with register_post_type? I don’t need any special access rights for the backend. I am only interested in this box.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter oliver1979

    (@oliver1979)

    I found this solution. Is this the correct way:

    add_filter(‘members_enable_[CPT-Name]_content_permissions’, ‘__return_true’);

    Plugin Author Caseproof

    (@caseproof)

    Hi @oliver1979

    Yes, that’s the correct filter hook to enable content permissions for CPT.

    Kind regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add content permissions post/meta box to CPT’ is closed to new replies.