Nav apraksta

others.php 1.1KB

12345678910111213141516171819
  1. <?php
  2. /**
  3. * Extra oEmbed providers that we know about and use on wpcom for feature parity.
  4. *
  5. * This file will be loaded even when you don't use the Shortcodes feature,
  6. * as these embeds are considered safe to use on any site
  7. * (and may end up embedded in Core in the future).
  8. *
  9. * @package automattic/jetpack
  10. */
  11. wp_oembed_add_provider( 'https://me.sh/*', 'https://me.sh/oembed?format=json' );
  12. wp_oembed_add_provider( '#https?://(www\.)?gfycat\.com/.*#i', 'https://api.gfycat.com/v1/oembed', true );
  13. wp_oembed_add_provider( '#https?://[^.]+\.(wistia\.com|wi\.st)/(medias|embed)/.*#', 'https://fast.wistia.com/oembed', true );
  14. wp_oembed_add_provider( '#https?://sketchfab\.com/.*#i', 'https://sketchfab.com/oembed', true );
  15. wp_oembed_add_provider( '#https?://(www\.)?icloud\.com/keynote/.*#i', 'https://iwmb.icloud.com/iwmb/oembed', true );
  16. wp_oembed_add_provider( '#https?://((song|album|artist|pods|playlist)\.link|odesli\.com?|mylink\.page)/.*#', 'https://odesli.co/oembed', true );
  17. wp_oembed_add_provider( '#https?://(www\.)?loom\.com/share/.*#i', 'https://www.loom.com/v1/oembed', true );