woocommerce_maxmind_geolocation_display_notices filter-hookWC 1.0

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

WC_Integration_MaxMind_Geolocation::display_missing_license_key_notice()
woocommerce_maxmind_geolocation_display_notices
WC_Admin_Notices::maxmind_missing_license_key_notice()
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 607
$filter_dismissed_notice = ! apply_filters( 'woocommerce_maxmind_geolocation_display_notices', true );

Where the hook is used in WooCommerce

Usage not found.