W3cubDocs

/WordPress

apply_filters( ‘wp_dashboard_widgets’, string[] $dashboard_widgets )

Filters the list of widgets to load for the admin dashboard.

Parameters

$dashboard_widgetsstring[]
An array of dashboard widget IDs.

Source

$dashboard_widgets = apply_filters( 'wp_dashboard_widgets', array() );

Changelog

Version Description
2.5.0 Introduced.

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