woocommerce_maxmind_geolocation_display_notices
Display notice if license key is missing.
Usage
add_filter( 'woocommerce_maxmind_geolocation_display_notices', 'wp_kama_woocommerce_maxmind_geolocation_display_notices_filter' ); /** * Function for `woocommerce_maxmind_geolocation_display_notices` filter-hook. * * @param mixed $old_value Option old value. * * @return mixed */ function wp_kama_woocommerce_maxmind_geolocation_display_notices_filter( $old_value ){ // filter... return $old_value; }
- $old_value(mixed)
- Option old value.
Where the hook is called
woocommerce_maxmind_geolocation_display_notices
woocommerce_maxmind_geolocation_display_notices
woocommerce/includes/integrations/maxmind-geolocation/class-wc-integration-maxmind-geolocation.php 279
if ( ! apply_filters( 'woocommerce_maxmind_geolocation_display_notices', true ) ) {
woocommerce/includes/admin/class-wc-admin-notices.php 585
$filter_dismissed_notice = ! apply_filters( 'woocommerce_maxmind_geolocation_display_notices', true );