• Resolved coyotito

    (@coyotito)


    I tried to remove Location in front end when submitting Job and in the backend part using the following code but it doesn’t work.

    Can someone help me with this please?

    add_filter( 'submit_job_form_fields', 'custom_submit_job_form_fields' );
    
    function custom_submit_job_form_fields( $fields ) {
        unset( $fields['location'] );
        return $fields;
    }

    https://www.ads-software.com/plugins/wp-job-manager/

Viewing 7 replies - 16 through 22 (of 22 total)
  • Not any code working for me

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    @wpexpert.zahid I’ve confirmed the above works – please stick to your thread and remember you want [‘job’][‘job_region’] since you’re not dealing with the regular location field.

    Hi, I have managed to remove location and region from submission field but I can’t manage to remove phone, hours and company video. Here’s the code I am using

    add_filter( 'submit_job_form_fields', 'custom_submit_job_form_fields', 'job_manager_job_listing_data_fields');
    function custom_submit_job_form_fields( $fields ) {
        $fields['job']['job_title']['label'] = "Template Name";
    	$fields['job']['application']['label'] = "Your Email";
    	unset( $fields['job']['job_hours']);
    	unset( $fields['job']['company_video']);
    	unset( $fields['job']['phone']);
    	unset( $fields['job']['job_location']);
    	unset( $fields['job']['job_region']);
        return $fields;
    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    add_filter( 'submit_job_form_fields', 'custom_submit_job_form_fields', 20 );

    Use a later priority ^

    Thank you for quick response!

    I have tried this, but it’s not working.

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    You will need to find the code adding the phone field then – its not a field in the core plugin, so I cannot tell you the name to use.

    Thanks for fast answers!

Viewing 7 replies - 16 through 22 (of 22 total)
  • The topic ‘Remove Location in Job Submit form and in the Backend’ is closed to new replies.