Created
October 9, 2018 11:31
-
-
Save yousufansa/dca45dad45ecc4757cebc6229049d28c to your computer and use it in GitHub Desktop.
Jobhunt - Remove Job 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
| add_action( 'init', 'jobhunt_child_custom_function' ); | |
| if ( ! function_exists( 'jobhunt_child_custom_function' ) ) { | |
| function jobhunt_child_custom_function() { | |
| add_filter('submit_job_form_fields' , 'jobhunt_child_custom_submit_job_form_fields'); | |
| } | |
| } | |
| if ( ! function_exists( 'jobhunt_child_custom_submit_job_form_fields' ) ) { | |
| function jobhunt_child_custom_submit_job_form_fields ($fields) { | |
| unset ($fields['job']['job_listing_gender']); | |
| unset ($fields['job']['job_listing_salary']); | |
| return $fields; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment