Filter Open Graph URL

Since SEOPress 2.7.2

function sp_social_og_url($html) {
//you can add here all your conditions as if is_page(), is_category() etc..
	$html = '<meta property="og:url" content="https://www.seopress.org/support/hooks/filter-canonical-url/" />"';
	return $html;
}
add_filter('seopress_social_og_url', 'sp_social_og_url');

Last modified: April 14, 2018