MemberPress: Shortcode To Display Content for Parent Accounts and Exclude Subaccounts
function mepr_exclude_sub_accounts( $atts, $content = “” ) { $user = MeprUtils::get_currentuserinfo(); if ($user === false) { return; } $ca_uuid = get_user_meta( $user->ID, ‘mpca_corporate_account_id’, true ); // If $ca_uuid has a value, in other words, not empty, then it’s a sub…Continue reading