WC_Product::set_tag_ids()
Set the product tags.
Метод класса: WC_Product{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WC_Product = new WC_Product(); $WC_Product->set_tag_ids( $term_ids );
- $term_ids(массив) (обязательный)
- List of terms IDs.
Список изменений
С версии 3.0.0 | Введена. |
Код WC_Product::set_tag_ids() WC Product::set tag ids WC 9.7.1
public function set_tag_ids( $term_ids ) { $this->set_prop( 'tag_ids', array_unique( array_map( 'intval', $term_ids ) ) ); }