@HHManager I created this snippet for you. You can use the MainWP Code Snippets extension to return any data that you may need if you know the option name it is stored in the DB with. ( This won’t run automatically, but usually isn’t something you need to watch on the regular )
If you are having issues with users clicking that option you could hide it in the WP-UI.
Or use update_option( 'blog_public', '0' ); instead as an “Executable” snippet & it will auto set that setting to NO any time the admin is accessed.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
WordPress® is a registered trademark of the WordPress Foundation, and WooCommerce® is a registered trademark of WooCommerce, Inc. MainWP is an independent product and is not affiliated, associated, or endorsed by the WordPress Foundation, WooCommerce, Inc., or Automattic Inc., except where noted under the Jetpack® API and Trademark License Agreement. All product names, logos, and brands are property of their respective owners and are used for identification purposes only.