- 1 ) ) as $key => $product ) { $name = $product->get_name(); $products[ $key ] = array( 'label' => $name, 'id' => $name, ); } return $products; } public static function is_ajax_field() { return true; } public static function get_field_value_type() { return static::TYPE_STRING; } }