如何使用yoast-seo插件删除某个页面的og:description和twitter:description标记?
答案 0 :(得分:3)
我自己解决了这个问题:
add_filter("wpseo_opengraph_desc", "remove_yoast_og");
add_filter("wpseo_twitter_description", "remove_yoast_og");
function remove_yoast_og($description) {
if (is_page(1093)) {
return false;
}
return $description;
}