Created
June 1, 2020 15:39
-
-
Save yousufansa/23c539339e6bbed5fc73bbae3857692d 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