How to edit submission fields in Listify WordPress theme

How to edit submission fields in Listify WordPress theme

If you want to edit submission fields on Listify WordPress theme (these are the fields that appear on Submit Listing page), all you need to to is to use filters. Filters are used for making changes on both frontend and backend.

For example, let’s change the “Title” to “Company Name”, and for another example, make Location required:

add_filter( 'submit_job_form_fields', 'custom_submit_job_form_fields' );

function custom_submit_job_form_fields( $fields ) {

    $fields['job']['job_title']['label'] = "Company Name";
    $fields['job']['job_location']['required'] = true;
    return $fields;
}

You might ask now – where do I get the filter names? Since the theme is using WP Job Manager plugin, you can get filter names on the plugins’ GitHub page. In our example, we modified the following:

'job_title' => array(
					'label'       => __( 'Title', 'wp-job-manager' ),
					'type'        => 'text',
					'required'    => true,
					'placeholder' => '',
					'priority'    => 1
				),
				'job_location' => array(
					'label'       => __( 'Location', 'wp-job-manager' ),
					'description' => __( 'Leave this blank if the location is not important', 'wp-job-manager' ),
					'type'        => 'text',
					'required'    => false,
					'placeholder' => __( 'e.g. "London"', 'wp-job-manager' ),
					'priority'    => 2
				),

So all you have to do is to choose the array and modify any of its arguments.

Resources:

Editing Job Submission Fields