wp_dashboard_widgets filter-hook . WP 2.5.0
Filters the list of widgets to load for the admin dashboard.
Usage
add_filter( 'wp_dashboard_widgets', 'filter_function_name_4964' ); function filter_function_name_4964( $dashboard_widgets ){ // filter... return $dashboard_widgets; }
- $dashboard_widgets(string[])
- An array of dashboard widget IDs.
Changelog
Since 2.5.0 | Introduced. |
Where the hook is called
wp_dashboard_widgets
wp-admin/includes/dashboard.php 132
$dashboard_widgets = apply_filters( 'wp_dashboard_widgets', array() );