-
I was wondering if there’s a way to hook into the OpenGraph tags, specifically as it relates to the images. I have a site that uses external images for it’s social media images. You have these few meta keys:
rank_math_facebook_image<= absolute url
rank_math_facebook_image_id<= attachment id
rank_math_twitter_image<= absolute url
rank_math_twitter_image_id<= attachment idAnd I noticed that it priorities the image id field over the image field (doesn’t seem like the image field is used at all).
Coming from using YoastSEO, there was a filter you could use to hook into the output of the
og:imageand things similar to that. However, looking at your code and your documentation I don’t see anything similar.I noticed that you have this action
rank_math/opengraph/facebookwhich basically calls
add_action( 'rank_math/opengraph/facebook', ['RankMath\OpenGraph\Facebook', 'image'], 30 )
but I if I try to remove it or modify it like other types of actions and filters, it doesn’t seem to work either.Is there something else I need to be looking into? Andy direction would help.
The ticket ‘OpenGraph filters?’ is closed to new replies.