0

I'd like to believe this would be in wp_options, but I can't find the right field.

1 Answer 1

2

You're looking for blog_public:

update_option( 'blog_public', '0' );

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.