My question is simple.

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



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.