WC_Admin_Notices::add_maxmind_missing_license_key_notice()
Add MaxMind missing license key notice.
Description Description
Source Source
File: includes/admin/class-wc-admin-notices.php
453 454 455 456 457 458 459 460 461 462 463 464 465 | public static function add_maxmind_missing_license_key_notice() { $default_address = get_option( 'woocommerce_default_customer_address' ); if ( ! in_array( $default_address , array ( 'geolocation' , 'geolocation_ajax' ), true ) ) { return ; } $integration_options = get_option( 'woocommerce_maxmind_geolocation_settings' ); if ( empty ( $integration_options [ 'license_key' ] ) ) { self::add_notice( 'maxmind_license_key' ); } } |
Changelog Changelog
Version | Description |
---|---|
3.9.0 | Introduced. |