1. Home
  2. Appearance, Styling, and Theming
  3. Theming Matador
  4. Add a Cover Letter field to the Application form

Add a Cover Letter field to the Application form

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

You can add this code to a (child) theme’s functions.php file or 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 description then 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 September 24, 2023

Was this article helpful?

Related Articles

Need Support?
Can't find the answer you're looking for?
Contact Support