WC_WCCOM_Site::load()
Load the WCCOM site class.
Description Description
Source Source
File: includes/wccom-site/class-wc-wccom-site.php
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' ) );
}
Changelog Changelog
| Version | Description |
|---|---|
| 3.7.0 | Introduced. |