dashboard_secondary_items filter-hook . WP 4.4.0
Filters the number of secondary link items for the 'WordPress Events and News' dashboard widget.
Usage
add_filter( 'dashboard_secondary_items', 'filter_function_name_7961' ); function filter_function_name_7961( $items ){ // filter... return $items; }
- $items(string)
- How many items to show in the secondary feed.
Changelog
Since 4.4.0 | Introduced. |
Where the hook is called
dashboard_secondary_items
wp-admin/includes/dashboard.php 1506
'items' => apply_filters( 'dashboard_secondary_items', 3 ),