How to Remove Robots Meta Tag Completely from HTML
-
Previously we were using
add_filter( 'wpseo_robots', '__return_false' );
to stop outputting robots meta in HTML.However, it stops working from the recent update. Now, it outputs
<meta name='robots' content='noindex, nofollow' />
When I return
null
forwpseo_robots
filter, it outputs<meta name='robots' content='max-image-preview:large' />
Is there any other way to completely stop outputting ‘robots’ meta in HTML?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How to Remove Robots Meta Tag Completely from HTML’ is closed to new replies.