WC_Admin_Notices::add_maxmind_missing_license_key_notice()
Add MaxMind missing license key notice.
Method of the class: WC_Admin_Notices{}
No Hooks.
Return
null
. Nothing (null).
Usage
$result = WC_Admin_Notices::add_maxmind_missing_license_key_notice();
Changelog
Since 3.9.0 | Introduced. |
WC_Admin_Notices::add_maxmind_missing_license_key_notice() WC Admin Notices::add maxmind missing license key notice code WC 9.8.2
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' ); } }