• Resolved ataybe01

    (@ataybe01)


    Hello,

    Once we activate the “Force Login” plugin, users can only log-in, but cannot register. This is great. However, we would like to have a link where new users can register. We already do have a registration page setup in WordPress, therefore:

    1) How can we include a “register here” link? As of now, it allows new users log-in only.
    2) How can we have this link redirect to our registration page?

    Best,
    ataybe01

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Kevin Vess

    (@kevinvess)

    Hi– thanks for using Force Login!

    1) How can we include a “register here” link? As of now, it allows new users log-in only.

    WordPress comes with built-in functionality to manage user registrations. By default, it is turned off but you can easily turn it on.

    Head over to Settings ? General page in your WordPress admin area. Scroll down to the ‘Membership’ section and check the box next to ‘Anyone can register’ option.

    Next you need to select the default user role. This is the user role assigned to each new user who registers on your website.

    2) How can we have this link redirect to our registration page?

    I believe I’ve answered this question on another post, check out this topic:

    https://www.ads-software.com/support/topic/custom-registration-page-6/

    Hi Kevin,

    Thanks for the great plugin,
    seem that my issue with the register page is not solved after looking into your several posts. please help.
    The login page has register link that is /register/ which redirects to login page again. do I have to create a custom register page?
    any one can register is enabled.

    website: https://www.myanurakti.com

    Regards,
    Harish

    Plugin Author Kevin Vess

    (@kevinvess)

    Hi!

    It looks like your “Register” link points to: /register1/ which I assume is a custom registration page you created.

    If you want your custom registration URL to be publicly accessible, you’ll need to tell Force Login to add an exception for that page.

    Try adding this to your theme’s functions.php file:

    /**
     * Filter Force Login to allow exceptions for specific URLs.
     *
     * @param array $whitelist An array of URLs. Must be absolute.
     * @return array
     */
    function my_forcelogin_whitelist( $whitelist ) {
      $whitelist[] = wp_registration_url();
      return $whitelist;
    }
    add_filter( 'v_forcelogin_whitelist', 'my_forcelogin_whitelist' );

    Hi Kevin,

    That was spoon feed, thank you so much. simply awesome.

    Plugin Author Kevin Vess

    (@kevinvess)

    @kishore19

    I’m glad you got it working!

    Be sure to rate and review my plugin to let others know how you like it.

    Thanks for using Force Login!

    singulismisa

    (@singulismisa)

    Hello,
    I write through a translator, I do not speak english and am a complete beginner. I address the same problem. I need to have the registration page accessible to everyone. I tried to insert the help from the forum, but it did not work.

    This is a site under construction: https://test.singulis.net/prihlaseni/?redirect_to=https%3A%2F%2Ftest.singulis.net%2Fregistrace%2F In the bottom right corner is the link to the registration I need to unlock.

    Thank you

    Michaela

    singulismisa

    (@singulismisa)

    So I came to it, thank you :).

    Michaela

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Registration link?’ is closed to new replies.