Title: [Plugin: WordPress SEO by Yoast] programmatically remove robots meta
Last modified: August 20, 2016

---

# [Plugin: WordPress SEO by Yoast] programmatically remove robots meta

 *  [Steve Taylor](https://wordpress.org/support/users/gyrus/)
 * (@gyrus)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wordpress-seo-by-yoast-programmatically-remove-robots-meta/)
 * WordPress version: 3.4.1
    WordPress SEO version: 1.2.5
 * I’d like to programmatically override the robots meta output, so on my staging
   server, no matter what is set with the SEO plugin, I can have noindex,nofollow(
   for obvious reasons).
 * However, it seems that the `robots` function is called by the `head` function,
   which is hooked – so I have to remove ALL of the `head` function, or nothing.
   And there’s no filter applied before output inside `robots`.
 * I do have a mechanism for applying a server-level password to the staging server,
   but I want to know that there’s never “index” set in the meta there.
 * [http://wordpress.org/extend/plugins/wordpress-seo/](http://wordpress.org/extend/plugins/wordpress-seo/)

The topic ‘[Plugin: WordPress SEO by Yoast] programmatically remove robots meta’
is closed to new replies.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

## Tags

 * [hook](https://wordpress.org/support/topic-tag/hook/)
 * [robots](https://wordpress.org/support/topic-tag/robots/)

 * 0 replies
 * 1 participant
 * Last reply from: [Steve Taylor](https://wordpress.org/support/users/gyrus/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wordpress-seo-by-yoast-programmatically-remove-robots-meta/)
 * Status: not resolved