Source file: modules/widgets/top-posts.php
View in GitHubParameters
- 2
-
(int) 2 Number of days. Default is 2.
- $args
-
(array) The widget arguments.
Changelog
Since: Jetpack 3.9.3
Notes
You can use the jetpack_top_posts_days
filter to change the number of days used to calculate Top Posts. In the example below, we’ll change that timeframe to 30 days:
function jetpackme_top_posts_timeframe() { return '30'; } add_filter( 'jetpack_top_posts_days', 'jetpackme_top_posts_timeframe' );
Have a question?
Comments are closed for this article, but we're still here to help! Visit the support forum and we'll be happy to answer any questions.
View support forum