Customize BE Stats Arguments

<?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' );
view raw functions.php hosted with ❤ by GitHub

Bill Erickson

Bill Erickson is a freelance WordPress developer and a contributing developer to the Genesis framework. For the past 14 years he has worked with attorneys, publishers, corporations, and non-profits, building custom websites tailored to their needs and goals.

Ready to upgrade your website?

I build custom WordPress websites that look great and are easy to manage.

Let's Talk