Vimeo set cookie without using vimeo

Hello,
I only use local videos, netherless Vimeo sets a cookie “cf_bm”.
Does anyone have any idea why? How can i prevent this?

@Joe84

Probably, this is something caused because of the Vimeo API integrated into our theme. It loads this JavaScript file in the theme:
https://player.vimeo.com/api/player.js

You can easily disable it by adding this PHP function in the functions.php file of your Child Theme:


/* Disable Vimeo API */
add_action( 'wp_enqueue_scripts', 'remove_vimeo_api', 10 );
function remove_vimeo_api() {

    wp_dequeue_script('vimeo_iframe_api');

}

You can find instructions to create a child theme:

thanks Pavel

i add your code in the child function.php, but it doesn’t work. Is this the right syntax?

The child function.php works, i tested this.

I have also tested, disable the ‘vimeo_iframe_api’ in the parent function.php and it works, the cookie is gone.

any idea’s?

I found the error, the 10 is probably the number in the queue and was already present in another action, if I change the number to 11, it works

J