BE Stats – Change conditions under which rankings are saved

<?php
// Save all stats data, don't limit it to just posts
add_filter( 'be_stats_update', '__return_true' );
// -- OR --
/**
* Limit Stats to Events
*
*/
function be_stats_for_events( $update, $id ) {
return 'events' == get_post_type( $id );
}
add_filter( 'be_stats_update', 'be_stats_for_events', 10, 2 );
view raw functions.php hosted with ❤ by GitHub

BE Stats