Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

@webb-version-control webb-version-control commented Jan 30, 2019

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

@lucagrandicelli

This comment has been minimized.

Copy link

@lucagrandicelli lucagrandicelli commented Apr 8, 2019

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

@rynaldos

This comment has been minimized.

Copy link

@rynaldos rynaldos commented May 12, 2020

Set the priority to something like 999, like so:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.