Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.