dashboard_secondary_items
Filters the number of secondary link items for the 'WordPress Events and News' dashboard widget.
Usage
add_filter( 'dashboard_secondary_items', 'wp_kama_dashboard_secondary_items_filter' ); /** * Function for `dashboard_secondary_items` filter-hook. * * @param string $items How many items to show in the secondary feed. * * @return string */ function wp_kama_dashboard_secondary_items_filter( $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 1610
'items' => apply_filters( 'dashboard_secondary_items', 3 ),