Allow registration
-
Can i allow registration or a specific url so people can register?
I have tryied this code i found in the forum but it doesnt help.
add_action( 'parse_request', 'dmk_redirect_to_login_if_not_logged_in', 1 ); /** * Redirects a user to the login page if not logged in. * Added is_page() conditional * * @author Daan Kortenbach */ function dmk_redirect_to_login_if_not_logged_in() { // If on this page, do not redirect if ( is_page( 'change-me-to-page-slug' ) ) return; // If on this post, do not redirect if ( is_single( 'change-me-to-post-slug' ) ) return; // Conditional(s) above were false, redirect is_user_logged_in() || auth_redirect(); }
- The topic ‘Allow registration’ is closed to new replies.