Example #1
0
 function format_value($value, $post_id, $field)
 {
     // save_format - compatibility with ACF < 5.0.0
     if (!empty($field['save_format'])) {
         return $value;
     }
     // return
     return acf_format_date($value, $field['return_format']);
 }
Example #2
0
 function format_value($value, $post_id, $field)
 {
     return acf_format_date($value, $field['return_format']);
 }