---
title: Filtrer le HTML de l’alerte noindex de l’admin bar
url: "https://www.seopress.org/fr/support/hooks/filtrer-le-html-de-lalerte-noindex-de-ladmin-bar/"
lang: fr-FR
updated: 2020-10-06
hook_name: seopress_adminbar_noindex
required_version: 4.1
---

# Filtrer le HTML de l’alerte noindex de l’admin bar

- **Hook name:** `seopress_adminbar_noindex`
- **Required version:** 4.1

```php

add_filter('seopress_adminbar_noindex', 'sp_adminbar_noindex');
function sp_adminbar_noindex($html) {
	//my custom noindex alert
	//do your stuff here
	return $html;
}
```

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



