wp_dashboard_widgets WordPress Filter Hook
The wp_dashboard_widgets hook allows you to add your own widgets to the WordPress admin dashboard. This hook is triggered when the admin dashboard is loaded. You can use this hook to add your own custom widgets to the dashboard.
apply_filters( 'wp_dashboard_widgets', string[] $dashboard_widgets ) #
Filters the list of widgets to load for the admin dashboard.
Parameters
- $dashboard_widgets
(string[])An array of dashboard widget IDs.
Source
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |