更新时间:2023-12-01 23:15:52
我认为您可以更好地使用过滤器来清除该函数的输出.wpseo_json_ld_output 有过滤器.
You can better use a filter to clear the output by that function I think. There are filters for wpseo_json_ld_output.
function remove_json_ld_output( $data ) {
$data = array();
return $data;
}
add_filter('wpseo_json_ld_output', 'remove_json_ld_output', 10, 1);