Is there a function for getting a list of registered Meta Boxes and removing them? I see there is a method for adding, and removing.
http://codex.wordpress.org/Function_Reference/remove_meta_box
|
Is there a function for getting a list of registered Meta Boxes and removing them? I see there is a method for adding, and removing. http://codex.wordpress.org/Function_Reference/remove_meta_box |
|||||
|
|
Not really, but you can define your own. All meta boxes are stored in the global variable
This array will show all of the meta boxes registered for a specific screen and a specific context. You could also drill down even further because this array is also a multidimensional array that segregates meta boxes by priority and id. So let's say you want to get an array that contains all of the meta boxes that are of "normal" priority on the admin Dashboard. You'd call the following:
This is identical to the global array Removing core meta boxesLet's say you want to remove a bunch of meta boxes. The function above can be tweaked slightly to avail that:
If you wanted to remove, say, the incoming links widget from the Dashboard, you'd call:
|
||||
|
|
|
On the WordPress Dashboard, there are meta boxes displayed. There is a normal column, and a side column. I am able to obtain a list of registered meta boxes and remove them from the dashboard by using the following code:
Just use |
|||||||
|