Support » Plugin: WP Job Manager » Company name required

  • Resolved vander.goulart

    (@vandergoulart)


    Hi!

    I need the company name field non-required in order to proceed.

    Which php file I have to edit and what’s the line?

    Thank you

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter vander.goulart

    (@vandergoulart)

    Just tried to add these lines into functions.php, but nothing happens:

    add_filter( ‘submit_job_form_fields’, ‘custom_submit_job_form_fields_dm’ );

    function custom_submit_job_form_fields_dm( $fields ) {
    // in this example, we remove the job_tags field
    unset($fields[‘job’][‘company_name’]);

    // And return the modified fields
    return $fields;
    }

    braehler

    (@braehler)

    @vandergoulart

    you can go with this one here:

    add_filter( 'submit_job_form_fields', 'make_companyname_field_not_required' );
    
    function make_campanyname_field_not_required( $fields ) {
    	$fields['job']['company_name']['required'] = false;
    	return $fields;
    }
    • This reply was modified 5 months ago by braehler.
    • This reply was modified 5 months ago by braehler.
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.