File: /storage/v4513/tepnot/public_html/wp-content/plugins/dokan-pro/includes/Brands/AdminSettings.php
<?php
namespace WeDevs\DokanPro\Brands;
/**
* Class responsible for managing admin settings for product brands
*
* @deprecated 4.0.5 Use WooCommerce native product brands instead. @see OldBrandsMigration
*/
class AdminSettings {
/**
* Add admin settings for Brands feature
*
* @since 2.9.7
* @deprecated 4.0.5 Use WooCommerce native product brands instead. @see OldBrandsMigration
*
* @param array $settings_fields
* @param \Dokan_Settings $dokan_settings
*
* @return array
*/
public static function add_admin_settings_fields( $settings_fields, $dokan_settings ) {
$brands_settings = [
'product_brands_mode' => [
'name' => 'product_brands_mode',
'label' => __( 'Brands Selection Mode', 'dokan' ),
'desc' => __( 'Enable single or multiple brand selection mode for vendors.', 'dokan' ),
'type' => 'select',
'default' => 'single',
'options' => [
'single' => __( 'Single', 'dokan' ),
'multiple' => __( 'Multiple', 'dokan' ),
],
],
];
return $dokan_settings->add_settings_after(
$settings_fields,
'dokan_selling',
'product_vendors_can_create_tags',
$brands_settings
);
}
}