apply_filters ( 'jetpack_top_posts_widget_count', string $count )

Control the number of displayed posts.

Source file: modules/widgets/top-posts.php

View in GitHub

Parameters

$count

(string) Number of Posts displayed in the Top Posts widget. Default is 10.


Changelog

Since: Jetpack 3.3.0


Notes

You can use this filter to change the number of posts being displayed in the Top Posts & Pages Widget:

function jeherve_more_top_posts() {
	return '15';
}
add_filter( 'jetpack_top_posts_widget_count', 'jeherve_more_top_posts' );

Have a note to contribute?

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s