Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Videos de Facebook con ancho automático
function auto_width_facebook_video( $result, $url, $args, $post_id ) {
return preg_replace('/data-width="(\d+)"/', 'data-width="auto"', $result);
add_filter('embed_oembed_html', 'auto_width_facebook_video', 11, 4);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.