---
title: Filtrer la méta OG updated time
url: "https://www.seopress.org/fr/support/hooks/filtrer-la-meta-og-updated-time/"
lang: fr-FR
updated: 2019-05-12
hook_name: seopress_titles_og_updated_time
required_version: 3.5
---

# Filtrer la méta OG updated time

- **Hook name:** `seopress_titles_og_updated_time`
- **Required version:** 3.5

```php
function sp_titles_og_updated_time($html) { 
	//you can add here all your conditions as if is_page(), is_category() etc.. 
	$html = '<meta property="og:updated_time" content="2019-05-06T19:18:27+00:00" />';
	return $html;
}
add_filter('seopress_titles_og_updated_time', 'sp_titles_og_updated_time');
```

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



