Last active
August 29, 2015 14:20
-
-
Save enejb/c076ae52e99959716457 to your computer and use it in GitHub Desktop.
Jetpack Wigets Mosted Visited Timeframe 10 days
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Jetpack Wigets Mosted Visited Timeframe 10 days | |
* Plugin URI: http://URI_Of_Page_Describing_Plugin_and_Updates | |
* Version: 1.0 | |
* Author: Enej | |
* License: GPL2 | |
*/ | |
add_filter( 'jetpack_top_posts_days', 'jetpack_wigets_mosted_visited_timeframe_10' ); | |
// sets the top posts days to 10 instead of 2 which is the default and 10 is the maximum. | |
function jetpack_wigets_mosted_visited_timeframe_10(){ | |
return 10; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment