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()


Top ↑

Source

File: wp-admin/includes/dashboard.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by the Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.