Remove checkout form from admin by user role
-
Hello,
I’m trying to remove your plugin from the admin menu. Only for the role shop-manager. I have already remove some items with another code.
add_action( 'admin_menu', 'remove_menus' ); function remove_menus(){ // If the current user is not an admin if ( !current_user_can('manage_options') ) { remove_menu_page('plugins.php'); // Plugins remove_menu_page('themes.php'); // Appearance remove_menu_page('users.php'); // Users remove_menu_page('tools.php'); // Tools remove_menu_page('options-general.php'); // Settings } }
If i add this,
remove_menu_page('admin.php?page=checkout_form_designer'); // Checkout
It will not work. thanks in advance
Best regards,
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Remove checkout form from admin by user role’ is closed to new replies.