WPSEO_Replacement_Variable::__construct()publicYoast 1.0

WPSEO_Replacement_Variable constructor.

Метод класса: WPSEO_Replacement_Variable{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$WPSEO_Replacement_Variable = new WPSEO_Replacement_Variable();
$WPSEO_Replacement_Variable->__construct( $variable, $label, $description );
$variable(строка) (обязательный)
The variable that is replaced.
$label(строка) (обязательный)
The label of the replacement variable.
$description(строка) (обязательный)
The description of the replacement variable.

Код WPSEO_Replacement_Variable::__construct() Yoast 22.3

public function __construct( $variable, $label, $description ) {
	$this->variable    = $variable;
	$this->label       = $label;
	$this->description = $description;
}