WC_WCCOM_Site::load()public staticWC 3.7.0

Load the WCCOM site class.

Method of the class: WC_WCCOM_Site{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WC_WCCOM_Site::load();

Changelog

Since 3.7.0 Introduced.

WC_WCCOM_Site::load() code WC 8.7.0

public static function load() {
	self::includes();

	add_action( 'woocommerce_wccom_install_products', array( 'WC_WCCOM_Site_Installer', 'install' ) );
	add_filter( 'determine_current_user', array( __CLASS__, 'authenticate_wccom' ), 14 );
	add_action( 'woocommerce_rest_api_get_rest_namespaces', array( __CLASS__, 'register_rest_namespace' ) );
}