0

I am using BuddyPress in my LearnDash website,also using paid membership pro plugin to sell membership.How to hide the register button from the logged in users. Thank you

0

You can use a CSS rule.

.logged-in #insert-register-button-id-here {
    display: none;
}
  • Hiding buttons with CSS is rather bad idea... Most of the times you hide buttons to disable an action. Using CSS won't disable action - it will only hide button and you can easily show it and use it. – Krzysiek Dróżdż Jan 12 at 19:36
  • Yes, I agree. In fact I would have expected to already handle the issue. @beginner maybe this could help without touching code wordpress.org/plugins/if-menu – Stefano Tombolini Jan 12 at 19:46
0

you can check in theme code if is user logged in do something else show register url add this code in your theme index page

<?php if ( is_user_logged_in() ) {    echo 'Welcome, registered user!'; } else {    echo 'show your register link';}?>

link that on wordpress

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.