• Resolved James I.

    (@nootropixcom)


    Hi,
    I have a plugin that converts all images to the CDN-hosted ones. However, I want to change the og:image and twitter:image (featured image) meta tags to link to the original non-CDN images.

    Do you which hook can I use for a function that replaces cdn.mywebsite.com to mywebsite.com (using str_replce or preg_replace)?

    Thanks,
    G

Viewing 1 replies (of 1 total)
  • Plugin Support amboutwe

    (@amboutwe)

    You or your developer can use the wpseo_opengraph_image and wpseo_twitter_image filters to customize the images.

Viewing 1 replies (of 1 total)
  • The topic ‘function to replace og:image and twitter:image to non-CDN’ is closed to new replies.