---
title: Filter Twitter Card title
url: "https://www.seopress.org/support/hooks/filter-twitter-card-title/"
lang: en-US
updated: 2021-09-30
hook_name: seopress_social_twitter_card_title
required_version: 2.7.2
---

# Filter Twitter Card title

- **Hook name:** `seopress_social_twitter_card_title`
- **Required version:** 2.7.2

```php
function sp_social_twitter_card_title($html) { 
	//you can add here all your conditions as if is_page(), is_category() etc.. 
	$html = '<meta name="twitter:title" content="my awesome title" />'; 
	return $html;
}
add_filter('seopress_social_twitter_card_title', 'sp_social_twitter_card_title');
```

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



