Support

Account

Home Forums ACF PRO Populate Dynamic Select Field Reply To: Populate Dynamic Select Field

  • The selection is under the ‘choices’ key.

    
    function dynamic_dropdown_files( $field ){
        $something_dynamic = [
            'key_1' => 'value 1',
            'key_2' => 'value 2',
        ];
    
        $field['choices'] = $something_dynamic;
    
        return $field;
    }
    

    cheers