WC_WCCOM_Site::load()
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() WC WCCOM Site::load code WC 9.8.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' ) ); }