Skip to content

Instantly share code, notes, and snippets.

@imath
Created September 16, 2016 14:37
Show Gist options
  • Save imath/8cb4c7b83da55c631133519c1d9c5d0a to your computer and use it in GitHub Desktop.
Save imath/8cb4c7b83da55c631133519c1d9c5d0a to your computer and use it in GitHub Desktop.
neutralize regular comments tracking in BuddyPress
<?php
function neutralize_regular_post_comments_tracking( $default, $post_type ) {
if ( 'post' === $post_type ) {
return true;
}
return $default;
}
add_filter( 'bp_activity_pre_transition_post_type_comment_status', 'neutralize_regular_post_comments_tracking', 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment