Skip to content

Instantly share code, notes, and snippets.

@FernandoSalinas33
Created October 10, 2017 15:56
Show Gist options
  • Save FernandoSalinas33/204e76a3c0ae1b23dbaab87132c70b60 to your computer and use it in GitHub Desktop.
Save FernandoSalinas33/204e76a3c0ae1b23dbaab87132c70b60 to your computer and use it in GitHub Desktop.
Hide Featured Images
// 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