Check if meta box exist
-
I use the below code to remove the widget from the dashboard that a plugin adds.
add_action ( 'do_meta_boxes', 'remove_plugin_metaboxes' ); function remove_plugin_metaboxes () { remove_meta_box ( 'plugin_wwidget_id' , 'dashboard' , 'normal' ); }
Do I need to check if the meta box/ widget exists then only
remove_meta_box
?
Because after looking at the source of https://developer.www.ads-software.com/reference/functions/remove_meta_box/
I still cannot figure out if it has check it, if no, how do I check?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Check if meta box exist’ is closed to new replies.