1

My question is simple.

Is it possible to enable option "Anyone can register" with php function?

Thanks.

5

Yes you can use following in PHP:

update_option( 'users_can_register', $value );

Where $value can be 1 for Yes and 0 for No

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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