Created
October 10, 2017 15:56
-
-
Save FernandoSalinas33/204e76a3c0ae1b23dbaab87132c70b60 to your computer and use it in GitHub Desktop.
Hide Featured Images
This file contains 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 your own function to filter the fields | |
add_filter( 'submit_job_form_fields', 'remove_listify_submit_job_form_fields', 9999 ); | |
// This is your function which takes the fields, modifies them, and returns them | |
function remove_listify_submit_job_form_fields( $fields ) { | |
if( ! isset( $fields['job'] ) ) { | |
return $fields; | |
} | |
// If listing fields fields exist in Job array, remove them | |
if( isset( $fields['job']['featured_image'] ) ) { | |
unset( $fields['job']['featured_image']); | |
} | |
// And return the modified fields | |
return $fields; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment