2 years ago
Is there a check to see if the current page is the login page?
I’m looking for something similar to bp_is_register_page() but cannot find the function I need on the template tag reference:
Thanks @mercime although that article talks of wp-login.php (the WordPress login page). This isn’t much use as I am using a custom login page such as example.com/login
@henrywright-1 Didn’t know you created a special login page. Since it’s a Page you created specifically for login, you should be able to use the regular WP conditional for a specific Page https://codex.wordpress.org/Conditional_Tags#A_PAGE_Page or Page Template https://codex.wordpress.org/Conditional_Tags#Is_a_Page_Template
Of course, I should have mentioned I am using a custom page. I installed the Theme My Login plugin so can use /login as the login page.
Thanks for the links – is_page( 42 ), is_page( ‘login’ ), is_page_template( ‘login-form.php’ ), is_page_template( ‘page-login.php’ ) all didn’t work.
I pretty much can check for every page in BuddyPress except the login. I’ll keep trying…
Follow BuddyPress on Twitter •
Contact Us •
Terms of Service