Skip to content

Instantly share code, notes, and snippets.

@billerickson
Last active December 14, 2015 01:19
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save billerickson/5005520 to your computer and use it in GitHub Desktop.
<?php
/**
* Customize BE Stats Arguments
* This will limit it to 7 days of pageviews (default is 30) and 20 posts (default is 100)
*
* @author Bill Erickson
* @link http://www.billerickson.net/code/customize-be-stats-arguments
*
* @param array $args
* @return array $args
*/
function be_customize_stats_args( $args ) {
$args['days'] = 7;
$args['limit'] = 20;
return $args;
}
add_filter( 'be_stats_args', 'be_customize_stats_args' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment