• Resolved Hassan Hossinie

    (@onlinerir)


    Hello

    I wanted a sample code to add this option in version 3.2.6:
    new: Dokan admin setting repeatable field added 2 new options must-use and desc

    example:

    add_filter( 'dokan_settings_fields', 'add_new_setting_field_admin_panel' , 10, 1 );
    function add_new_setting_field_admin_panel( $settings_fields ) {
    
        $settings_fields['dokan_withdraw']['custom_repetable_example'] =  [
    		'name'  => 'custom_repetable_example',
    		'label' => __( 'Repeatable field', 'dokan-lite' ),
    		'type'  => 'repetable', // <============ What to put here
    		'desc'  => __( '', 'dokan-lite' ),
    		// <========== How to place duplicate fields here?
    	];
        return $settings_fields;
    }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.