Created
December 10, 2020 10:02
-
-
Save yousufansa/d2a6daa393324a3381531f394dc14743 to your computer and use it in GitHub Desktop.
Jobhunt - Remove Job & Company Submit Form Fields
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( 'jh_child_customize_job_manager_job_form_company_fields' ) ) { | |
| function jh_child_customize_job_manager_job_form_company_fields( $fields ) { | |
| if( isset( $fields['job']['job_type'] ) ) { | |
| unset( $fields['job']['job_type'] ); | |
| } | |
| if( isset( $fields['job']['job_category'] ) ) { | |
| unset( $fields['job']['job_category'] ); | |
| } | |
| if( isset( $fields['job']['job_listing_salary'] ) ) { | |
| unset( $fields['job']['job_listing_salary'] ); | |
| } | |
| if( isset( $fields['job']['job_listing_career_level'] ) ) { | |
| unset( $fields['job']['job_listing_career_level'] ); | |
| } | |
| if( isset( $fields['job']['job_listing_experience'] ) ) { | |
| unset( $fields['job']['job_listing_experience'] ); | |
| } | |
| if( isset( $fields['job']['job_listing_gender'] ) ) { | |
| unset( $fields['job']['job_listing_gender'] ); | |
| } | |
| if( isset( $fields['job']['job_listing_industry'] ) ) { | |
| unset( $fields['job']['job_listing_industry'] ); | |
| } | |
| if( isset( $fields['job']['job_listing_qualification'] ) ) { | |
| unset( $fields['job']['job_listing_qualification'] ); | |
| } | |
| if( isset( $fields['company']['company_website'] ) ) { | |
| unset( $fields['company']['company_website'] ); | |
| } | |
| if( isset( $fields['company']['company_tagline'] ) ) { | |
| unset( $fields['company']['company_tagline'] ); | |
| } | |
| if( isset( $fields['company']['company_video'] ) ) { | |
| unset( $fields['company']['company_video'] ); | |
| } | |
| if( isset( $fields['company']['company_twitter'] ) ) { | |
| unset( $fields['company']['company_twitter'] ); | |
| } | |
| return $fields; | |
| } | |
| } | |
| add_filter( 'submit_job_form_fields', 'jh_child_customize_job_manager_job_form_company_fields', 20 ); | |
| if ( ! function_exists( 'jh_child_customize_job_form_company_fields' ) ) { | |
| function jh_child_customize_job_form_company_fields( $fields ) { | |
| return array(); | |
| } | |
| } | |
| add_filter( 'jobhunt_submit_job_form_company_fields', 'jh_child_customize_job_form_company_fields', 20 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment