WC_Helper_Admin::load()
Loads the class, runs on init
Method of the class: WC_Helper_Admin{}
No Hooks.
Returns
null
. Nothing (null).
Usage
$result = WC_Helper_Admin::load();
WC_Helper_Admin::load() WC Helper Admin::load code WC 9.8.4
public static function load() { if ( is_admin() ) { $is_wc_home_or_in_app_marketplace = ( isset( $_GET['page'] ) && 'wc-admin' === $_GET['page'] //phpcs:ignore WordPress.Security.NonceVerification.Recommended ); if ( $is_wc_home_or_in_app_marketplace ) { add_filter( 'woocommerce_admin_shared_settings', array( __CLASS__, 'add_marketplace_settings' ) ); } } add_filter( 'rest_api_init', array( __CLASS__, 'register_rest_routes' ) ); }