dashboard_secondary_items filter-hookWP 4.4.0

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

wp_dashboard_primary()
dashboard_secondary_items
wp-admin/includes/dashboard.php 1610
'items'        => apply_filters( 'dashboard_secondary_items', 3 ),

Where the hook is used in WordPress

Usage not found.