HEX
Server: nginx/1.27.1
System: Linux in-3 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64
User: ivenus-clone (3297)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
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
        );
    }
}