Returns compiled CSS from a store, if found.
Parameters
$context
stringrequired- A valid context name, corresponding to an existing store key.
$options
arrayoptional- An array of options.
optimize
boolWhether to optimize the CSS output, e.g. combine rules.
Default false.prettify
boolWhether to add new lines and indents to output.
Defaults to whether theSCRIPT_DEBUG
constant is defined.
Default:
array()
Source
function wp_style_engine_get_stylesheet_from_context( $context, $options = array() ) {
return WP_Style_Engine::compile_stylesheet_from_css_rules( WP_Style_Engine::get_store( $context )->get_all_rules(), $options );
}
Changelog
Version | Description |
---|---|
6.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.