Site icon Hip-Hop Website Design and Development

PaidMembershipsPro disable header button after login [closed]

I’ve a clear header made with Astra theme, and there’s a button, which is made for the consumer to hitch with membership, nonetheless, it would not make sense if you find yourself already logged in. Is there a approach to disguise it for the logged-in customers solely? I believe PMPro doesn’t have such performance, however, maybe, I may add some PHP code to capabilities.php? One thing like:

if(is_user_logged_in() && function_exists('pmpro_hasMembershipLevel') && pmpro_hasMembershipLevel()) {
        //do one thing to delete the button :)
}

Additionally, it could even be an answer to simply change the textual content of this button, if that’s simpler.
Thanks in your solutions.