filter

jetpack_disable_eu_cookie_law_widget

Filters the display of the EU Cookie Law widget.

Parameters

true
bool

Should the EU Cookie Law widget be disabled. Default to false.

Changelog

How to use this hook

See “How to use actions and filters to customize Jetpack”.

Notes

You can use this filter to avoid displaying the widget on your site, even if you have added it to your widget area. For example, you could use an IP geolocation tool to find your visitors’ location, and only show the widget to visitors coming from a specific country. To disable the widget with that filter, do the following:
add_filter( 'jetpack_disable_eu_cookie_law_widget', '__return_true' );