---
title: Afficher l’URL canonique sur les pages noindex
url: "https://www.seopress.org/fr/support/hooks/afficher-lurl-canonique-sur-les-pages-noindex/"
lang: fr-FR
updated: 2026-10-20
hook_name: seopress_titles_canonical_on_noindex
required_version: 10.3
---

# Afficher l’URL canonique sur les pages noindex

- **Hook name:** `seopress_titles_canonical_on_noindex`
- **Required version:** 10.3

```php
<?php
// Keep the canonical tag on noindexed pages (default: omitted).
add_filter( 'seopress_titles_canonical_on_noindex', '__return_true' );
```

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


Enregistrez le filtre tôt (functions.php ou une extension), avant l’exécution de `wp_head`. Il ne modifie pas la balise meta robots.
