Make Company Name Field optional
-
Greetings –
I tried search, but wasn’t able to find what I’m looking to accomplish, so my hope is someone can help or point me in the right direction. I have 2 things I want to do:
1 – I want to make the Company Name field on the job submit form be optional. I tried the following:
add_filter( ‘job_manager_job_listing_data_fields’, ‘custom_job_manager_job_listing_data_fields’ );
function custom_job_manager_job_listing_data_fields( $fields ) {
$fields[‘company_name’][‘required’] = “false”;
return $fields;
}in functions.php – but it still pops the alert telling me to fill out the field. I’m sure there’s something wrong with my code, but I can’t find it.
2 – What I’d also like to set up is, if someone leaves that field blank – then, on the find a job page, where it normally has the company name under the job title – I’d like it to say “Company Name Withheld”
I’m relatively new to these kinds of edits, so I’m unsure of the process of setting that up. Any and all assistance that is offered would be greatly appreciated. Thank you for reading!
The topic ‘Make Company Name Field optional’ is closed to new replies.