Yoast\WP\SEO\Integrations\Watchers
Indexable_Post_Meta_Watcher::remove_post_id() public Yoast 1.0
Removes a post id from the array of posts to update.
{} Это метод класса: Indexable_Post_Meta_Watcher{}
Хуков нет.
Возвращает
null.
Использование
$Indexable_Post_Meta_Watcher = new Indexable_Post_Meta_Watcher(); $Indexable_Post_Meta_Watcher->remove_post_id( $post_id );
- $post_id(число/строка) (обязательный)
- The post ID.
Код Indexable_Post_Meta_Watcher::remove_post_id() Indexable Post Meta Watcher::remove post id Yoast 15.6.2
public function remove_post_id( $post_id ) {
$this->post_ids_to_update = \array_diff( $this->post_ids_to_update, [ (int) $post_id ] );
}