Skip to content Skip to navigation
Back to the main support

Filter Open Graph title

Hook name
seopress_social_og_title
Required version
2.7.2
function sp_social_og_title($html) {
//you can add here all your conditions as if is_page(), is_category() etc..
$html = '<meta property="og:title" content="my amazing og:title" />';
return $html;
}
add_filter('seopress_social_og_title', 'sp_social_og_title');
How-to use SEOPress hooks