• Resolved wesleybusacker

    (@wesleybusacker)


    I am trying to allow anyone to be able to register on the site, however checking the anyone can register checkbox and then clicking save, causes the check to be removed. I have tried disabling plugins and checked the permissions but nothing seems to be working. has anyone experienced something similar or perhaps know what could be causing this?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter wesleybusacker

    (@wesleybusacker)

    The fix was pasting the code snippet below into the themes functions.php file.

    /**

     * Enable user registration

     */

    function enable_user_registration() {

        add_filter( ‘pre_option_users_can_register’, ‘__return_true’ );

    }

    add_action( ‘after_setup_theme’, ‘enable_user_registration’ );

Viewing 1 replies (of 1 total)

The topic ‘Anyone can register issue’ is closed to new replies.