Worked great. I worked with you before to exclude a specific membership from mycred with the code.
/* Exclude gold from credits */
add_filter('bp_member_name','kleo_member_username');
add_filter( 'mycred_exclude_user', 'check_membership_exclusion', 10, 2 );
function check_membership_exclusion( $result, $user_id ) {
// Make sure Paid Memberships Pro is installed
if ( ! function_exists( 'pmpro_hasMembershipLevel' ) ) return $result;
// If the user has membership "gold exclude
if ( pmpro_hasMembershipLevel( 'gold', $user_id ) ) return true;
return $result;
}
The code you posted above also blocks even the excluded membership. Is there a way to allow the excluded membership to message with a 0 balance?
Thank you