time_formats WordPress Filter Hook
The time_formats hook allows you to modify the way that time is displayed on your WordPress site. This can be useful if you want to change the default time format to something more user-friendly, or if you need to display time in a different time zone.
apply_filters( 'time_formats', string[] $default_time_formats ) #
Filters the default time formats.
Contents
Parameters
- $default_time_formats
(string[])Array of default time formats.
Source
Changelog
Version | Description |
---|---|
2.7.0 | Introduced. |