Automattic\WooCommerce\Internal\Admin
WCAdminSharedSettings::__construct
Hook into WooCommerce Blocks.
Method of the class: WCAdminSharedSettings{}
No Hooks.
Returns
null. Nothing (null).
Usage
// protected - for code of main (parent) or child class $result = $this->__construct();
WCAdminSharedSettings::__construct() WCAdminSharedSettings:: construct code WC 10.3.5
protected function __construct() {
if ( did_action( 'woocommerce_blocks_loaded' ) ) {
$this->on_woocommerce_blocks_loaded();
} else {
add_action( 'woocommerce_blocks_loaded', array( $this, 'on_woocommerce_blocks_loaded' ), 10 );
}
}