-
Home
-
Joinchat – Enhanced "click to chat"
- Tips
How to Hide the "Joinchat" Admin Menu
function plt_hide_creame_whatsapp_me_menus() {
//Hide the "Joinchat" menu.
remove_menu_page('joinchat');
}
add_action('admin_menu', 'plt_hide_creame_whatsapp_me_menus', 11);
Where do I put this code?
How to Hide the "Joinchat" Meta Box
function plt_hide_creame_whatsapp_me_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Joinchat" meta box.
remove_meta_box('joinchat', $screen->id, 'side');
}
add_action('add_meta_boxes', 'plt_hide_creame_whatsapp_me_metaboxes', 20);
How to Hide the "Joinchat Clicks" Dashboard Widget
function plt_hide_creame_whatsapp_me_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "Joinchat Clicks" widget.
remove_meta_box('joinchat_tracking_widget', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'plt_hide_creame_whatsapp_me_dashboard_widgets', 20);