我正在尝试从管理面板中删除菜单
我的代码可以删除一些页面,但无法删除以下页面。管理php?页面=ot主题选项管理。php?页码=ot设置最小值。php?页码=yith\\u woocompare\\u面板
add_action(\'admin_menu\', \'remove_admin_menu_links\');
function remove_admin_menu_links(){
$user = wp_get_current_user();
if( $user && isset($user->user_email) && \'[email protected]\' == $user->user_email ) {
remove_menu_page(\'tools.php\');
remove_menu_page(\'options-general.php\');
remove_menu_page(\'plugins.php\');
remove_menu_page(\'users.php\');
remove_menu_page( \'themes.php\' );
remove_submenu_page( \'themes.php\', \'widgets.php\' );
remove_menu_page( \'wpcf7\' );
remove_menu_page( \'ot-theme-options\' ); // Doesn\'t work
remove_menu_page( \'ot-settings\' ); // Doesn\'t work
//echo \'<pre>\' . print_r( $GLOBALS[ \'menu\' ], TRUE) . \'</pre>\';
}
}