1. Home
  2. Appearance, Styling, and Theming
  3. Templates
  4. Add Cover Letter field to Application

Add Cover Letter field to Application

If you want to add a cover letter to the application form you need to add a little of code

You can add this to (child) theme’s function of any other location that works for you.

function mdocs_example_matador_application_default_fields( $fields ) {
    $field_to_add = [ 'letter', ];
    return array_merge( $fields, $field_to_add );
}
add_filter( 'matador_application_fields_defaults', 'mdocs_example_matador_application_default_fields' );

If you wish to adjust the label and desctiption that you can use this code

function mdocs_example_matador_application_fields_structure( $fields ) {
	$fields['letter']['label']                       = 'Upload Additional document';
	$fields['letter']['description']                 = 'Attach an additional file, if applicable. Accepted file types are DOC, DOCX, PDF, HTML, and TXT.';

	return $fields;
} );
add_filter( 'matador_application_fields_structure', mdocs_example_matador_application_fields_structure' );

Matador can support more files but this would require additional code Contact support for details

Updated on April 23, 2021

Was this article helpful?