How to get a list of all dashboard widgets
-
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
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to get a list of all dashboard widgets’ is closed to new replies.