-
Home
-
WPJAM Basic
- Tips
How to Hide WPJAM BASIC Admin Menus
function plt_hide_wpjam_basic_menus() {
//Hide the "WPJAM" menu.
remove_menu_page('wpjam-basic');
//Hide the "WPJAM → 优化设置" menu.
remove_submenu_page('wpjam-basic', 'wpjam-basic');
//Hide the "WPJAM → 扩展管理" menu.
remove_submenu_page('wpjam-basic', 'wpjam-verify');
}
add_action('admin_menu', 'plt_hide_wpjam_basic_menus', 12);
Where do I put this code?
How to Hide the "WordPress资讯及技巧" Dashboard Widget
function plt_hide_wpjam_basic_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "WordPress资讯及技巧" widget.
remove_meta_box('wpjam_update', 'dashboard', 'side');
}
add_action('wp_dashboard_setup', 'plt_hide_wpjam_basic_dashboard_widgets', 20);