-
Home
-
Branded Social Images – Open Graph Images with logo and extra text layer
- Tips
How to Hide the "Branded Social Images" Admin Menu
function plt_hide_branded_social_images_menus() {
//Hide the "Branded Social Images" menu.
remove_menu_page('branded-social-images');
}
add_action('admin_menu', 'plt_hide_branded_social_images_menus', 11);
Where do I put this code?
How to Hide the "Branded Social Images" Meta Box
function plt_hide_branded_social_images_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Branded Social Images" meta box.
remove_meta_box('branded-social-images', $screen->id, 'advanced');
}
add_action('add_meta_boxes', 'plt_hide_branded_social_images_metaboxes', 20);