Registers the style if source provided (does NOT overwrite) and enqueues.
Parameters
$handlestring
Name of the stylesheet. Should be unique.
$srcstringoptional
Full URL of the stylesheet, or path of the stylesheet relative to the WordPress root directory. Default empty.Default: ''
$depsstring[]optional
An array of registered stylesheet handles this stylesheet depends on. Default empty array.Default: array()
$verstring|bool|nulloptional
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.Default: false
$mediastringoptional
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: 'all'
Signature, return type and hooks compared across 5 parsed releases.
About this page
Parsed data
Generated from the wordpress-develop 7.0.4 tag, from src/wp-includes/functions.wp-styles.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.