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