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

New contributor
hai_shar is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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