Yoast\WP\SEO\Bulk_Editor\Application\Updates
Meta_Writer_Interface::write_score
Writes a per-field score for a post.
Метод класса: Meta_Writer_Interface{}
Хуков нет.
Возвращает
void. Ничего (null).
Использование
$Meta_Writer_Interface = new Meta_Writer_Interface(); $Meta_Writer_Interface->write_score( $post_id, $key, $score ): void;
- $post_id(int) (обязательный)
- The ID of the post.
- $key(строка) (обязательный)
- The score meta key (without prefix) to write.
- $score(int) (обязательный)
- The 0-100 score to write.
Код Meta_Writer_Interface::write_score() Meta Writer Interface::write score Yoast 28.7
public function write_score( int $post_id, string $key, int $score ): void;