Yoast\WP\SEO\Integrations\Watchers
Primary_Term_Watcher::save_primary_terms() public Yoast 1.0
Saves the primary terms for a post.
{} Это метод класса: Primary_Term_Watcher{}
Хуков нет.
Возвращает
null.
Использование
$Primary_Term_Watcher = new Primary_Term_Watcher(); $Primary_Term_Watcher->save_primary_terms( $post_id );
- $post_id(число) (обязательный)
- Post ID to save the primary terms for.
Код Primary_Term_Watcher::save_primary_terms() Primary Term Watcher::save primary terms Yoast 15.6.2
public function save_primary_terms( $post_id ) {
// Bail if this is a multisite installation and the site has been switched.
if ( $this->site->is_multisite_and_switched() ) {
return;
}
$this->primary_term_builder->build( $post_id );
}