AssetsController::register_style( string $handle, string $src, array $deps = array(), string $media = 'all' )

Registers a style according to wp_register_style.


Description Description


Parameters Parameters

$handle

(Required) Name of the stylesheet. Should be unique.

$src

(Required) Full URL of the stylesheet, or path of the stylesheet relative to the WordPress root directory.

$deps

(Optional) An array of registered stylesheet handles this stylesheet depends on.

Default value: array()

$media

(Optional) The media for which this stylesheet has been defined. Default 'all'. Accepts media types like 'all', 'print' and 'screen', or media queries like '(orientation: portrait)' and '(max-width: 640px)'.

Default value: 'all'


Top ↑

Source Source

File: packages/woocommerce-blocks/src/AssetsController.php


			


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.