Skip to content

Instantly share code, notes, and snippets.

@tripflex
Last active September 12, 2016 20:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tripflex/979ced461df3d62ccc5bb8547765fdd3 to your computer and use it in GitHub Desktop.
Save tripflex/979ced461df3d62ccc5bb8547765fdd3 to your computer and use it in GitHub Desktop.
Allow WP Job Manager Field Editor to convert job_expires date field output (untested)
<?php
add_filter( 'field_editor_dp_skip_conversion', 'allow_fe_to_convert_job_expires' );
function allow_fe_to_convert_job_expires( $skip_fields ){
$key = array_search( 'job_expires', $skip_fields );
if( $key !== false ){
unset( $skip_fields[$key] );
}
return $skip_fields;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment