'name', 'order' => 'ASC', 'hide_empty' => true, ) ); $brands_list = get_terms( 'product_brand' ); if ( ! empty( $brands_list ) && is_array( $brands_list ) ) { $return['items']['product_brand'] = array( 'id' => 'product_brand', 'type' => 'checkbox', 'label' => __( 'Brands' ), 'values' => array(), ); foreach ( $brands_list as $term ) { $return['items']['product_brand']['values'][] = array( 'label' => strip_tags( html_entity_decode( $term->name ) ), 'value' => $term->slug, ); } } return $return; } } new APPMAKER_WC_Product_Brands();