Automattic\WooCommerce\Internal\AddressProvider

AbstractAutomatticAddressProvider::__constructpublicWC 1.0

Loads up the JWT for the address service and saves it to transient.

Method of the class: AbstractAutomatticAddressProvider{}

No Hooks.

Returns

null. Nothing (null).

Usage

$AbstractAutomatticAddressProvider = new AbstractAutomatticAddressProvider();
$AbstractAutomatticAddressProvider->__construct();

AbstractAutomatticAddressProvider::__construct() code WC 10.3.3

public function __construct() {
	add_filter( 'pre_update_option_woocommerce_address_autocomplete_enabled', array( $this, 'refresh_cache' ) );
	add_action( 'wp_enqueue_scripts', array( $this, 'load_scripts' ) );

	// Powered by Google branding.
	$this->branding_html = 'Powered by&nbsp;<img style="height: 15px; width: 45px; margin-bottom: -2px;" src="' . plugins_url( '/assets/images/address-autocomplete/google.svg', WC_PLUGIN_FILE ) . '" alt="Google logo" />';
}