wp_dashboard_setup WordPress Action Hook
The wp_dashboard_setup hook is called when the dashboard is initializing. This hook allows you to add your own dashboard widgets, remove default dashboard widgets, and reorder the dashboard widgets.
do_action( 'wp_dashboard_setup' ) #
Fires after core widgets for the admin dashboard have been registered.
More Information
This hook grants access to Dashboard-related customization options. In particular, this hook is used for adding [wp_add_dashboard_widget()] or removing[remove_meta_box()] dashboard widgets from WordPress.
To add a dashboard widget, use wp_add_dashboard_widget()
To remove a dashboard widget, use remove_meta_box()
Source
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |