How to remove the metabox from edit screen?
-
Hello, i would like to remove completely the metabox from the WP edit screen in order to prevent being loaded, in functions.php i have written:
function remove_unwanted_metaboxes() {
$screen = get_current_screen();
if (!$screen) {
return;
}
// OneSignal Push Notifications
remove_meta_box('onesignal_metabox', $screen->id, 'normal');
}
add_action('add_meta_boxes', 'remove_unwanted_metaboxes', 20);but it don’t works.
Thanks in advice.The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.