Duplicate role badges showing in Memberpress account page
-
I am seeing duplicate role badges on the account page.
This is because the $active_memberships array includes both payment and subscription_confirmation transaction types. Here is a fix for L110-L112 to make sure we do not add same mapped role ID twice.
if ( array_key_exists( $mapped_role_id, $all_roles ) && ! in_array( $mapped_role_id, $mapped_role_ids, true ) ) { array_push( $mapped_role_ids, $mapped_role_id ); }
Thank you for the great plugin!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Duplicate role badges showing in Memberpress account page’ is closed to new replies.