date_formats WordPress Filter Hook
The date_formats hook allows you to modify the way dates are displayed in WordPress. You can use this hook to change the default date format, or add custom date formats.
apply_filters( 'date_formats', string[] $default_date_formats ) #
Filters the default date formats.
Contents
Parameters
- $default_date_formats
(string[])Array of default date formats.
Source
Changelog
Version | Description |
---|---|
4.0.0 | Added ISO date standard YYYY-MM-DD format. |
2.7.0 | Introduced. |