• I wrote a small plugin for my organization’s WordPress network, using the wp_oembed_add_provider function, and it works great. However, I would like to make it more “user proof.”

    Our media server only accepts oEmbed URLs if they are in a certain format:
    https://site.com/id/*

    However, the share url is https://site.com/media/*
    This URL format does not work with our oEmbed provider.

    Is there a filter that I can add that sees the /media/ version of the URL as a valid oEmbed URL, but rewrites it to /id/ so that it works with our oEmbed provider?

The topic ‘User-proofing an oEmbed provider plugin, wrong URL?’ is closed to new replies.