WC_Brands_Admin::thumbnail_field_save()
Saves thumbnail field.
Метод класса: WC_Brands_Admin{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WC_Brands_Admin = new WC_Brands_Admin(); $WC_Brands_Admin->thumbnail_field_save( $term_id );
- $term_id(int) (обязательный)
- Term ID.
Код WC_Brands_Admin::thumbnail_field_save() WC Brands Admin::thumbnail field save WC 9.4.2
public function thumbnail_field_save( $term_id ) { if ( isset( $_POST['product_cat_thumbnail_id'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing update_term_meta( $term_id, 'thumbnail_id', absint( $_POST['product_cat_thumbnail_id'] ) ); // phpcs:ignore WordPress.Security.NonceVerification.Missing } }