Skip to content

Instantly share code, notes, and snippets.

@iamgabrielma
Created September 27, 2018 07:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iamgabrielma/2be6fda0579395408db6f3f6b12de13a to your computer and use it in GitHub Desktop.
Save iamgabrielma/2be6fda0579395408db6f3f6b12de13a to your computer and use it in GitHub Desktop.
WP Job Manager - Remove all company details from the job submission page
add_filter( 'submit_job_form_fields', 'gma_custom_submit_job_form_fields' );
function gma_custom_submit_job_form_fields( $fields ) {
unset($fields['company']['company_name']);
unset($fields['company']['company_website']);
unset($fields['company']['company_tagline']);
unset($fields['company']['company_video']);
unset($fields['company']['company_twitter']);
unset($fields['company']['company_logo']);
return $fields;
}
@webb-version-control
Copy link

Using this on my site but it's only removing the company name field? https://railwork.co.uk

@lucagrandicelli
Copy link

@LVLYXL yep, it seems removing only the input field, not the whole row.

@rynaldos-zz
Copy link

Set the priority to something like 999, like so:

add_filter( 'submit_job_form_fields', 'gma_custom_submit_job_form_fields', 99999 );

@quantumleap33
Copy link

It works fine, thanks! Is there a way to remove related fields from the backend form, as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment