Add 'dashboard_secondary_items'
filter for the number of secondary link items in the 'WordPress News' dashboard widget.
props MikeHansenMe, DrewAPicture. fixes #31434. git-svn-id: https://develop.svn.wordpress.org/trunk@33833 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f0ab8b5a06
commit
79907af59c
@ -1036,7 +1036,15 @@ function wp_dashboard_primary() {
|
||||
* @param string $title Title attribute for the widget's secondary link.
|
||||
*/
|
||||
'title' => apply_filters( 'dashboard_secondary_title', __( 'Other WordPress News' ) ),
|
||||
'items' => 3,
|
||||
|
||||
/**
|
||||
* Filter the number of secondary link items for the 'WordPress News' dashboard widget.
|
||||
*
|
||||
* @since 4.4.0
|
||||
*
|
||||
* @param string $items How many items to show in the secondary feed.
|
||||
*/
|
||||
'items' => apply_filters( 'dashboard_secondary_items', 3 ),
|
||||
'show_summary' => 0,
|
||||
'show_author' => 0,
|
||||
'show_date' => 0,
|
||||
|
Loading…
Reference in New Issue
Block a user