LLMS_Assets::register_style( string $handle )
Register a defined stylesheet
Description Description
If the stylesheet has not yet been registered, it will be automatically registered.
The stylesheet must be defined in one of the following places:
- The stylesheet definition list found at includes/assets/llms-assets-styles.php
- Added to the definition list via the
llms_get_style_asset_definitionsfilter - Added "just in time" via the
llms_get_style_assetfilter.
If the stylesheet is not defined this function will return false.
This method will also automatically add RTL style data unless explicitly told not to do so.
The RTL stylesheet should have the same name (and suffix) with -rtl included prior to the suffix, for example llms.css (or llms.min.css) would add the RTL stylesheet llms-rtl.css (or llms-rtl.min.css).
Parameters Parameters
- $handle
-
(Required) The stylesheets's handle.
Return Return
(boolean)
Source Source
File: includes/class-llms-assets.php
Changelog Changelog
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |