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
File: wp-admin/includes/dashboard.php
.
View all references
do_action( 'wp_dashboard_setup' );
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
To remove all Dashboard widgets:
To remove a dashboard widget, call remove_meta_box() within the hooked function.
Example from Codex: To Remove a Dashboard Widget
To remove a dashboard widget, call remove_meta_box() within the hooked function.