Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Plugin Name: Hotfix vimeo oembed
- Plugin URI:
- Description: (Modified) Fix incorrect vimeo https oembed provider url.
- Author: gluten
- Version: 1.1
- Author URI: http://belabor.org/
- */
- add_filter('oembed_providers', 'fix_vimeo_oembed_providers');
- function fix_vimeo_oembed_providers( $providers ) {
- $providers['#https://(www\.)?vimeo\.com/.*#i'] = array( 'http://vimeo.com/api/oembed.{format}', true );
- return $providers;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement