-
Home
-
Zodan Authorized Downloads
- Tips
How to Hide the "Authorized Downloads" Admin Menu
function plt_hide_z_authorized_downloads_menus() {
//Hide the "Settings → Authorized Downloads" menu.
remove_submenu_page('options-general.php', 'z-authorized-downloads');
}
add_action('admin_menu', 'plt_hide_z_authorized_downloads_menus', 11);
Where do I put this code?
How to Hide the "Authorize" Meta Box
function plt_hide_z_authorized_downloads_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Authorize" meta box.
remove_meta_box('authorized_downloads_meta_box', $screen->id, 'side');
}
add_action('add_meta_boxes', 'plt_hide_z_authorized_downloads_metaboxes', 20);