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 the co-founder and lead developer at CultivateWP, a WordPress agency focusing on high performance sites for web publishers.

About Me
Ready to upgrade your website?

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

Let's Talk