WC_Helper_Admin::load()
Loads the class, runs on init
Метод класса: WC_Helper_Admin{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$result = WC_Helper_Admin::load();
Код WC_Helper_Admin::load() WC Helper Admin::load WC 9.4.2
public static function load() { global $pagenow; if ( is_admin() ) { $is_in_app_marketplace = ( 'admin.php' === $pagenow && isset( $_GET['page'] ) && 'wc-admin' === $_GET['page'] //phpcs:ignore WordPress.Security.NonceVerification.Recommended && isset( $_GET['path'] ) && '/extensions' === $_GET['path'] //phpcs:ignore WordPress.Security.NonceVerification.Recommended ); if ( $is_in_app_marketplace ) { add_filter( 'woocommerce_admin_shared_settings', array( __CLASS__, 'add_marketplace_settings' ) ); } } add_filter( 'rest_api_init', array( __CLASS__, 'register_rest_routes' ) ); }