Fires after core widgets for the admin dashboard have been registered.
Source
do_action( 'wp_dashboard_setup' );
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |
CARVIEW |
Fires after core widgets for the admin dashboard have been registered.
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()
do_action( 'wp_dashboard_setup' );
Used by | Description |
---|---|
wp_dashboard_setup()wp-admin/includes/dashboard.php | Registers dashboard widgets. |
Version | Description |
---|---|
2.5.0 | Introduced. |
You must log in before being able to contribute a note or feedback.
To remove a dashboard widget, call remove_meta_box() within the hooked function.
To remove all Dashboard widgets:
Example from Codex: To Remove a Dashboard Widget
To remove a dashboard widget, call remove_meta_box() within the hooked function.