WordPress entfernen noIndex programmatisch

// force to remove noindex and nofollow
if($_SERVER['HTTP_HOST'] == 'live-domain.sample'){
    update_option('blog_public', '1');
} else {
    update_option('blog_public', '0');
}
Ivan Cuaco