WordPress at Your Fingertips
function is not described

WC_WCCOM_Site::load() public WC 3.7.0

Load the WCCOM site class.

{} It's a method of the class: WC_WCCOM_Site{}

No Hooks.

Return

null. Nothing.

Usage

$result = WC_WCCOM_Site::load();

Changelog

Since 3.7.0 Introduced.

Code of WC_WCCOM_Site::load() WC 5.7.1

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' ) );
}