WpWodify\Template::set
Assigns a variable to the vars attribute, for use in a script.
Signature
public function set(string
$name,
[mixed
$value = null] )
Parameters
$name
— string- Name of the variable.
$value
— mixed- Value of the variable.
Returns
- Template
- Returns $this, for object-chaining.