Yoast\WP\SEO\Bulk_Editor\Infrastructure\Updates
Meta_Writer::write_title
Writes the title for a post.
Метод класса: Meta_Writer{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$Meta_Writer = new Meta_Writer(); $Meta_Writer->write_title( $type, $post_id, $title ): void;
- $type(Update_Type) (обязательный)
- The appearance the title belongs to.
- $post_id(int) (обязательный)
- The ID of the post.
- $title(строка) (обязательный)
- The title to write.
Код Meta_Writer::write_title() Meta Writer::write title Yoast 28.3
public function write_title( Update_Type $type, int $post_id, string $title ): void {
$key = $type->is_social() ? 'opengraph-title' : 'title';
$this->write( $key, $post_id, $title );
}