When I call global $wp_meta_boxes;
it returns null.
I'm trying to calling like:
class my_class()
{
public function __construct(){
add_action( 'wp_dashboard_setup' , array( $this , 'my_meta_boxes' ));
}
public function my_meta_boxes(){
global $wp_meta_boxes;
return $wp_meta_boxes;
}
}
The class is working fine, but I cannot make it work.
[EDIT]
To make understand better the issue, my objective is the one actually answered in this question:
- Get List of Registered Meta Boxes and Removing Them.
I need to retrieve metaboxes
for specific admin pages. The problem is that the global
is not working for me.
I appreciate any suggestion.