WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WC_Admin_Assets::admin_styles() public WC 1.0

Enqueue styles.

Это метод класса: WC_Admin_Assets{}

Хуки из метода
Возвращает

Null. Ничего.

Использование

$WC_Admin_Assets = new WC_Admin_Assets();
$WC_Admin_Assets->admin_styles();

Код WC_Admin_Assets::admin_styles() WC 4.5.2

woocommerce/includes/admin/class-wc-admin-assets.php
<?php
public function admin_styles() {
	global $wp_scripts;

	$version   = Constants::get_constant( 'WC_VERSION' );
	$screen    = get_current_screen();
	$screen_id = $screen ? $screen->id : '';

	// Register admin styles.
	wp_register_style( 'woocommerce_admin_menu_styles', WC()->plugin_url() . '/assets/css/menu.css', array(), $version );
	wp_register_style( 'woocommerce_admin_styles', WC()->plugin_url() . '/assets/css/admin.css', array(), $version );
	wp_register_style( 'jquery-ui-style', WC()->plugin_url() . '/assets/css/jquery-ui/jquery-ui.min.css', array(), $version );
	wp_register_style( 'woocommerce_admin_dashboard_styles', WC()->plugin_url() . '/assets/css/dashboard.css', array(), $version );
	wp_register_style( 'woocommerce_admin_print_reports_styles', WC()->plugin_url() . '/assets/css/reports-print.css', array(), $version, 'print' );
	wp_register_style( 'woocommerce_admin_marketplace_styles', WC()->plugin_url() . '/assets/css/marketplace-suggestions.css', array(), $version );
	wp_register_style( 'woocommerce_admin_privacy_styles', WC()->plugin_url() . '/assets/css/privacy.css', array(), $version );

	// Add RTL support for admin styles.
	wp_style_add_data( 'woocommerce_admin_menu_styles', 'rtl', 'replace' );
	wp_style_add_data( 'woocommerce_admin_styles', 'rtl', 'replace' );
	wp_style_add_data( 'woocommerce_admin_dashboard_styles', 'rtl', 'replace' );
	wp_style_add_data( 'woocommerce_admin_print_reports_styles', 'rtl', 'replace' );
	wp_style_add_data( 'woocommerce_admin_marketplace_styles', 'rtl', 'replace' );
	wp_style_add_data( 'woocommerce_admin_privacy_styles', 'rtl', 'replace' );

	// Sitewide menu CSS.
	wp_enqueue_style( 'woocommerce_admin_menu_styles' );

	// Admin styles for WC pages only.
	if ( in_array( $screen_id, wc_get_screen_ids() ) ) {
		wp_enqueue_style( 'woocommerce_admin_styles' );
		wp_enqueue_style( 'jquery-ui-style' );
		wp_enqueue_style( 'wp-color-picker' );
	}

	if ( in_array( $screen_id, array( 'dashboard' ) ) ) {
		wp_enqueue_style( 'woocommerce_admin_dashboard_styles' );
	}

	if ( in_array( $screen_id, array( 'woocommerce_page_wc-reports', 'toplevel_page_wc-reports' ) ) ) {
		wp_enqueue_style( 'woocommerce_admin_print_reports_styles' );
	}

	// Privacy Policy Guide css for back-compat.
	if ( isset( $_GET['wp-privacy-policy-guide'] ) || in_array( $screen_id, array( 'privacy-policy-guide' ) ) ) {
		wp_enqueue_style( 'woocommerce_admin_privacy_styles' );
	}

	// @deprecated 2.3.
	if ( has_action( 'woocommerce_admin_css' ) ) {
		do_action( 'woocommerce_admin_css' );
		wc_deprecated_function( 'The woocommerce_admin_css action', '2.3', 'admin_enqueue_scripts' );
	}

	if ( WC_Marketplace_Suggestions::show_suggestions_for_screen( $screen_id ) ) {
		wp_enqueue_style( 'woocommerce_admin_marketplace_styles' );
	}
}