Yoast\WP\SEO\Generators\Schema
Author::set_image_from_options() protected Yoast 1.0
An author should not have an image from options, this only applies to persons.
{} Это метод класса: Author{}
Хуков нет.
Возвращает
Массив. The Person schema.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->set_image_from_options( $data, $schema_id );
- $data(массив) (обязательный)
- The Person schema.
- $schema_id(строка) (обязательный)
- The string used in the @id for the schema.
Код Author::set_image_from_options() Author::set image from options Yoast 15.6.2
protected function set_image_from_options( $data, $schema_id ) {
if ( $this->site_represents_current_author() ) {
return parent::set_image_from_options( $data, $schema_id );
}
return $data;
}