Last active
September 12, 2016 20:47
-
-
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)
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
<?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