-
I’m trying to override the twitter:data1 which corresponds to the “written by” label, I’d like to hardcode a User instead of using the real user.
I’ve already managed to override some but I don’t know how to do it for that meta tag.
add_filter('rank_math/json_ld', function ($data, $jsonld) { $data['ProfilePage']['name'] = 'SOME USER'; $data['ProfilePage']['image']['caption'] = 'SOME USER'; unset($data['WebSite']['potentialAction']); return $data; }, 99, 2);
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The ticket ‘twitter tag override’ is closed to new replies.