Property | Type | Description | |
---|---|---|---|
$match_pattern | used to match stylesheet files to process them as pure CSS |
Property | Type | Description | |
---|---|---|---|
$compiler | null | WPLessCompiler | ||
$is_filters_registered | boolean | ||
$is_hooks_registered | boolean |
Method | Description | |
---|---|---|
__construct ( WPLessConfiguration $configuration ) | ||
addImportDir ( string $dir ) | Proxy method | |
addVariable ( $name, $value ) | Proxy method | |
dispatch ( ) | Dispatches all events of the plugin | |
filterStylesheetUri ( string $css, WPLessStylesheet $stylesheet ) : string | Correct Stylesheet URI | |
getCompiler ( ) | ||
getImportDir ( ) : array | Proxy method | |
getStyles ( ) : WP_Styles | Returns WordPress Styles manager | |
install ( ) | Performs plugin install actions | |
instantiateCompiler ( ) | ||
processEditorStylesheets ( string $mce_css ) : string | Compile editor stylesheets registered via add_editor_style() | |
processStylesheet ( string $handle, $force = false ) : WPLessStylesheet | Process a single stylesheet | |
processStylesheets ( $force = false ) | Process all stylesheets to compile just in time | |
registerFunction ( $name, $callback ) | Proxy method | |
setImportDir ( array $dirs ) | Proxy method | |
setVariables ( array $variables ) | Proxy method | |
uninstall ( ) | Performs plugin uninstall actions | |
unregisterFunction ( $name ) | Proxy method |
Method | Description | |
---|---|---|
_filterStylesheetUri ( array $matches ) : string | Returns a proper url() CSS key with absolute paths if needed | |
getLessCompilerPath ( ) | Load the parent compiler class. This is provided via lessc.inc.php for both the lessphp and less.php implementations | |
getQueuedStylesToProcess ( ) : array | Find any style to process | |
registerHooks ( ) | Method to register hooks (and do it only once) |
public __construct ( WPLessConfiguration $configuration ) | ||
$configuration | WPLessConfiguration |
protected _filterStylesheetUri ( array $matches ) : string | ||
$matches | array | Expects at least 0, 'uri' and 'quote' keys |
return | string |
public filterStylesheetUri ( string $css, WPLessStylesheet $stylesheet ) : string | ||
$css | string | parsed CSS |
$stylesheet | WPLessStylesheet | |
return | string | parsed and fixed CSS |
protected getLessCompilerPath ( ) |
protected getQueuedStylesToProcess ( ) : array | ||
return | array | styles to process |
public getStyles ( ) : WP_Styles | ||
return | WP_Styles | styles instance |
public processEditorStylesheets ( string $mce_css ) : string | ||
$mce_css | string | Comma separated list of CSS file URLs |
return | string | $mce_css New comma separated list of CSS file URLs |
public processStylesheet ( string $handle, $force = false ) : WPLessStylesheet | ||
$handle | string | |
$force | boolean If set to true, rebuild all stylesheets, without considering they are updated or not | |
return | WPLessStylesheet |
public processStylesheets ( $force = false ) | ||
$force | boolean If set to true, rebuild all stylesheets, without considering they are updated or not |
protected registerHooks ( ) |