Custom settings embedded Vimeo

Place the following function in your WordPress functions.php and the Vimeo settings will be set to HQ

function custom_vimeo_settings($code){
if(strpos($code, '') !== false) {
$return = preg_replace('#(//[^s"'<>?]+)#', '$1?quality=1080p', $code);
return $return;
return $code;
add_filter('embed_handler_html', 'custom_vimeo_settings');
add_filter('embed_oembed_html', 'custom_vimeo_settings');

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

© 2021 Jakob Helmer - Powered by WordPress - @trails&tribulations