Wordpress - Check if Website is hidden from Search Engines?
The setting is stored in the option blog_public
.
if( 0 == get_option( 'blog_public' ) ){
echo 'search engines discouraged';
}
The setting is stored in the option blog_public
.
if( 0 == get_option( 'blog_public' ) ){
echo 'search engines discouraged';
}