Created
January 21, 2014 16:09
-
-
Save messaoudi-mounir/8542954 to your computer and use it in GitHub Desktop.
Buddyperss - How to remove "Favorite" function from Buddypress
This file contains 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
add_filter( 'bp_activity_can_favorite', '__return_false' ); | |
add_filter( 'bp_get_total_favorite_count_for_user', '__return_false' ); | |
function bp_admin_bar_render_remove_favorites() { | |
global $wp_admin_bar; | |
$wp_admin_bar->remove_menu('my-account-activity-favorites'); | |
} | |
add_action( 'wp_before_admin_bar_render', 'bp_admin_bar_render_remove_favorites' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment