For some reason all youtube videos autoplays on the backend after typing in the oembed field.
I’ve managed to disable autoplay on front-end by using code provided by some other user:
function disable_oembed_autoplay( $provider, $url, $args ) {
if (strpos($provider, 'youtube')!==FALSE) {
$provider = add_query_arg('autoplay', 1, $provider);
}
return $provider;
}
add_filter('oembed_fetch_url', 'disable_oembed_autoplay', 10, 3);
– but it still autoplays on backend, which is really annoying.
Any idea how can i disable autoplay on backend?