Filter OG Image
-
I want to filter Open-Graph image source on the fly. Following things happen when i try.
1. When i use “wpseo_og_og_image” filter to change it, and it works excellently.
But if the post don’t have any og image identified using any of your image grabbing method, the filter is unavailable.
2. I make the “wpseo_og_og_image” filter available by setting a default og image, but i should not do it.
3. Your post meta grabbing method leaves no hook to change the value, either i could just use “opengraph-image” postmeta filter to apply it.All if need is to alter the og:image source if present, or push it if you have no source & i have an alternative.
you = yoast seo plugin.
i = mypluginAny help is appreciated.
I recommend you allow a filter which could let us change or push new image.
Thanks.
- The topic ‘Filter OG Image’ is closed to new replies.