• sc00t

    (@sc00t)


    Hi guys,

    I have some users I’m really restricting access to, so basically they can only post in 1 category and not see much else.

    I’ve removed stuff from them using the functions.php as follows:

    if ( ! in_array( 'administrator', $current_user->roles ) ) :
            // remove any other stuff here - something like this.
            remove_menu_page('edit.php');
            // Media
            remove_menu_page('upload.php');
            // Comments
            remove_menu_page('comments.php');	
            // Tools
            remove_menu_page('tools.php');

    I’d like to do the same so they can’t access the Contact form page in wp-admin, but can’t for the life of me get that to work!

    I’ve tried (‘admin.php’) and (‘admin.php?page=wcpf7’) to no avail.

    Please can someone help?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Hide Contact (admin.php/?page=wpcf7 from editor’ is closed to new replies.