W3cubDocs

/WordPress

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 on Trac

Changelog

Version Description
2.5.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_dashboard_setup