Hello all,
I'm trying to get a list of all of the dashboard widgets on my options page.
I know you can do the following:
add_action('wp_dashboard_setup', 'remove_dashboard_widgets' );
function remove_dashboard_widgets() {
global $wp_meta_boxes;
foreach($wp_meta_boxes['dashboard'] as $m) {
print_r($m);
}
}
This seems to only work on the dashboard, not globally across all pages.
Is there a nice way of retrieving the same information on another page?
Many thanks in advance.
Dave