woof_meta_use_acf_dateformat
Controls whether ACF (Advanced Custom Fields) date format should be used for datepicker meta filters; when true, dates are formatted as Ymd instead of Unix timestamps.
Parameters
$use_acf (bool) — Boolean flag indicating whether ACF date format should be applied (default: false)
Source File
ext/meta_filter/html_types/datepicker/index.php:115
Code Example
add_filter('woof_meta_use_acf_dateformat', function($use_acf) {
// Enable ACF date format handling
return true;
});
Usage Notes
- When true, the from/to dates are converted to Ymd format using gmdate().
- Also converts 'i' (infinity) values to PHP_INT_MAX when ACF format is active.
- Essential for compatibility when filtering by ACF date fields.