I need to allow registration as part of a build for a client, and I am aware this can be turned on in the admin panel, but can I turn it on in the function?

1 Answer 1


Yes sure you can, just update the appropriate option inside your given function..

update_option( 'users_can_register', 1 );

It's a checkbox option, so the value is 1 = on, 0 = off..

Hope that helps..

  • excellent, now can I remove the setting from the admin panel?
    – Mild Fuzz
    Nov 9, 2010 at 16:53
  • Since you've posted the follow-up as another question i've answered there.. :)
    – t31os
    Nov 9, 2010 at 17:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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