WpvLess

class WpvLess

Methods

Compiles the LESS files

compile() 
static

basic_compile

basic_compile($file_from, $file_to) 
static

Arguments

$file_from

$file_to

export_vars

export_vars() 
static

Sanitizes a variable

prepare(string $name, string $value, boolean $returnOriginal = false) : int|string|null
static

Arguments

$name

string

option name

$value

string

option value from db

$returnOriginal

boolean

whether to return the db value if no good sanitization is found

Response

int|string|null

sanitized value

shows a warning

warning(string $message) 
static

Arguments

$message

string

warning message

Properties

List of option names which are known to be percentages

percentages : array
static
var

Type(s)

array