---
title: Filter meta robots
url: "https://www.seopress.org/support/hooks/filter-meta-robots/"
lang: en-US
updated: 2021-09-29
hook_name: seopress_titles_robots
required_version: 2.7.1
---

# Filter meta robots

- **Hook name:** `seopress_titles_robots`
- **Required version:** 2.7.1

```php
function sp_titles_robots($html) { 
	//you can add here all your conditions as if is_page(), is_category() etc.. 
	$html = '<meta name="robots" content="noindex"/>';
	return $html;
}
add_filter('seopress_titles_robots', 'sp_titles_robots');
```

Source: [https://gist.github.com/wp-seopress/d0c884aa43fe491b0efd8ac09a3cb5ec](https://gist.github.com/wp-seopress/d0c884aa43fe491b0efd8ac09a3cb5ec)



