Created
September 14, 2017 18:33
-
-
Save gabrielmerovingi/3563e461c1b2b812d2e8d6a393c55b01 to your computer and use it in GitHub Desktop.
Show BP profile balances only for admins. Requires you to have selected to show balances in profile headers in your myCRED settings.
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
function mycred_pro_bp_profile_balance( $output, $balance_template, $buddypress_module ) { | |
if ( ! mycred_is_admin() ) | |
return ''; | |
return $output; | |
} | |
add_filter( 'mycred_bp_profile_header', 'mycred_pro_bp_profile_balance', 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment