WC_Helper::admin_enqueue_scripts
Enqueue admin scripts and styles.
Метод класса: WC_Helper{}
Хуков нет.
Возвращает
void. Ничего (null).
Использование
$result = WC_Helper::admin_enqueue_scripts();
Код WC_Helper::admin_enqueue_scripts() WC Helper::admin enqueue scripts WC 11.3.0
public static function admin_enqueue_scripts() {
$screen = get_current_screen();
$screen_id = $screen ? $screen->id : '';
$wc_screen_id = 'woocommerce';
if ( ( $wc_screen_id . '_page_wc-addons' === $screen_id || $wc_screen_id . '_page_wc-admin' === $screen_id ) && isset( $_GET['section'] ) && 'helper' === $_GET['section'] ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended
wp_enqueue_style( 'woocommerce-helper', WC()->plugin_url() . '/assets/css/helper.css', array(), Constants::get_constant( 'WC_VERSION' ) );
wp_style_add_data( 'woocommerce-helper', 'rtl', 'replace' );
}
}