WPSEO_Schema_HowTo::add_step_description() private Yoast 1.0
Checks if we have a step description, if we do, add it.
{} Это метод класса: WPSEO_Schema_HowTo{}
Хуков нет.
Возвращает
null
. Null. Ничего.
Использование
// private - только в коде основоного (родительского) класса $result = $this->add_step_description( $schema_step, $json_text );
- $schema_step(массив) (обязательный)
- Our Schema output for the Step.
- $json_text(строка) (обязательный)
- The step text.
Код WPSEO_Schema_HowTo::add_step_description() WPSEO Schema HowTo::add step description Yoast 16.1.1
private function add_step_description( &$schema_step, $json_text ) {
$schema_step['itemListElement'] = [
[
'@type' => 'HowToDirection',
'text' => $json_text,
],
];
}