wp embed provider <command>

Retrieves oEmbed providers.

In this article

Examples

# List format,endpoint fields of available providers.
$ wp embed provider list
+------------------------------+-----------------------------------------+
| format                       | endpoint                                |
+------------------------------+-----------------------------------------+
| #https?://youtu\.be/.*#i     | https://www.youtube.com/oembed          |
| #https?://flic\.kr/.*#i      | https://www.flickr.com/services/oembed/ |
| #https?://wordpress\.tv/.*#i | https://wordpress.tv/oembed/            |

# Get the matching provider for the URL.
$ wp embed provider match https://www.youtube.com/watch?v=dQw4w9WgXcQ
https://www.youtube.com/oembed

Subcommands

NameDescription
wp embed provider list

Lists all available oEmbed providers.

wp embed provider match

Gets the matching provider for a given URL.

Command documentation is regenerated at every release. To add or update an example, please submit a pull request against the corresponding part of the codebase.