Created
September 16, 2016 14:37
-
-
Save imath/8cb4c7b83da55c631133519c1d9c5d0a to your computer and use it in GitHub Desktop.
neutralize regular comments tracking in BuddyPress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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