Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Hide Balance from Visitors
- * @version 1.0
- */
- add_filter( 'mycred_bp_profile_header', 'mycredpro_hide_balance_from_visitors' );
- function mycredpro_hide_balance_from_visitors( $content ) {
- if ( ! is_user_logged_in() ) return '';
- return $content;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement