Skip to content Skip to navigation
Back to the main support

Filter Open Graph Author / Publisher

Hook name
seopress_social_og_author
Required version
3.3
function sp_social_og_author($html) {
//you can add here all your conditions as if is_page(), is_category() etc..
$html = '<meta property="article:author" content="https://www.facebook.com/seopresspro/" />
<meta property="article:publisher" content="https://www.facebook.com/seopresspro/" />';
return $html;
}
add_filter('seopress_social_og_author', 'sp_social_og_author');
How-to use SEOPress hooks