Created
September 27, 2018 07:47
-
-
Save iamgabrielma/2be6fda0579395408db6f3f6b12de13a to your computer and use it in GitHub Desktop.
WP Job Manager - Remove all company details from the job submission page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} |
@LVLYXL yep, it seems removing only the input field, not the whole row.
Set the priority to something like 999, like so:
add_filter( 'submit_job_form_fields', 'gma_custom_submit_job_form_fields', 99999 );
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
Using this on my site but it's only removing the company name field? https://railwork.co.uk