-
-
Save dexit/6bdec9c5618d4cd87a8441dab1a41c21 to your computer and use it in GitHub Desktop.
Front Jobs - Remove Company Related Fields From Submit Job Form
This file contains hidden or 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
if ( ! function_exists( 'front_child_mas_wpjmc_remove_submit_job_form_company_fields' ) ) { | |
function front_child_mas_wpjmc_remove_submit_job_form_company_fields( $fields ) { | |
if( get_option( 'job_manager_job_submission_required_company' ) ) { | |
unset( $fields['company']['company_name'] ); | |
unset( $fields['company']['company_website'] ); | |
unset( $fields['company']['company_video'] ); | |
unset( $fields['company']['company_twitter'] ); | |
unset( $fields['company']['company_logo'] ); | |
unset( $fields['company']['company_about'] ); | |
} | |
return $fields; | |
} | |
} | |
add_filter( 'submit_job_form_fields', 'front_child_mas_wpjmc_remove_submit_job_form_company_fields', 20 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment