Remove opengraph author don’t work
-
Hello,
I want to remove the author from opengraph with following code in functions-php:add_filter(
'wpseo_frontend_presenter_classes'
, function($filter) {
return array_diff($filter, [
'Yoast\WP\SEO\Presenters\Open_Graph\Article_Published_Time_Presenter',
'Yoast\WP\SEO\Presenters\Open_Graph\Article_Modified_Time_Presenter',
'Yoast\WP\SEO\Presenters\Open_Graph\Article_Author_Presenter',
]);
}
);
Only removing ‘Yoast\WP\SEO\Presenters\Open_Graph\Article_Author_Presenter’ is not working. What I am doing wrong?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Remove opengraph author don’t work’ is closed to new replies.