Support » Plugin: WP Private Content Plus » Adding restrictions to posts for non-admin users

  • Resolved memoline

    (@memoline)


    Hi,

    Since WP Private Content Plus 1.11 has removed capability to add restrictions to posts for non-admin users, it became our huge problem now because editor can not use the post restriction, we had to get back to version 1.10. Sir, it would be nice if you set it as an option in settings or could you please guide me how to manually remove this. Thanks in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author nimeshrmr

    (@nimeshrmr)

    Hi

    Please try adding the following code to your functions.php file of theme

    add_filter('wppcp_restriction_setting_meta_box_visibility','wppcp_restriction_setting_meta_box_visibility',10,2);
    function wppcp_restriction_setting_meta_box_visibility($status,$params){
    return true;
    }

    Thanks

    memoline

    (@memoline)

    Thanks for your support, sir.

    To complete the answer, I needed to add the file management metabox too in editors page, not only the post restriction.

    This code added to the other bit worked for me:

    add_filter('wppcp_file_attachment_setting_meta_box_visibility','wppcp_file_attachment_setting_meta_box_visibility',10,2);
    function wppcp_file_attachment_setting_meta_box_visibility($status,$params){
    return true;
    }
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding restrictions to posts for non-admin users’ is closed to new replies.