-
Home
-
Simple Light Weight Social Share (Tweet, Like, Share and Linkedin)
- Tips
How to Hide the "Tweet Like Share" Admin Menu
function plt_hide_only_tweet_like_share_and_google_1_menus() {
//Hide the "Settings → Tweet Like Share" menu.
remove_submenu_page('options-general.php', 'social4i');
}
add_action('admin_menu', 'plt_hide_only_tweet_like_share_and_google_1_menus', 11);
Where do I put this code?
How to Hide the "Tweet Like Plusone (extra options)" Meta Box
function plt_hide_only_tweet_like_share_and_google_1_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Tweet Like Plusone (extra options)" meta box.
remove_meta_box('s4-meta-box', $screen->id, 'normal');
}
add_action('add_meta_boxes', 'plt_hide_only_tweet_like_share_and_google_1_metaboxes', 20);
How to Hide the "News and Updates" Dashboard Widget
function plt_hide_only_tweet_like_share_and_google_1_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "News and Updates" widget.
remove_meta_box('social4i_admin_widget', 'dashboard', 'side');
}
add_action('wp_dashboard_setup', 'plt_hide_only_tweet_like_share_and_google_1_dashboard_widgets', 20);