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

WC_Frontend_Scripts::register_style() private WC 1.0

Register a style for use.

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

Хуков нет.


Null. Ничего.


$result = WC_Frontend_Scripts::register_style( $handle, $path, $deps, $version, $media, $has_rtl );
$handle(строка) (обязательный)
Name of the stylesheet. Should be unique.
$path(строка) (обязательный)
Full URL of the stylesheet, or path of the stylesheet relative to the WordPress root directory.
An array of registered stylesheet handles this stylesheet depends on.
String specifying stylesheet version number, if it has one, which is added to the URL as a query string for cache busting purposes. If version is set to false, a version number is automatically added equal to current installed WordPress version. If set to null, no version is added.
The media for which this stylesheet has been defined. Accepts media types like 'all', 'print' and 'screen', or media queries like '(orientation: portrait)' and '(max-width: 640px)'.
If has RTL version to load too.

Код WC_Frontend_Scripts::register_style() WC 5.0.0

private static function register_style( $handle, $path, $deps = array(), $version = WC_VERSION, $media = 'all', $has_rtl = false ) {
	self::$styles[] = $handle;
	wp_register_style( $handle, $path, $deps, $version, $media );

	if ( $has_rtl ) {
		wp_style_add_data( $handle, 'rtl', 'replace' );