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.


Parameters

$default_time_formats

(string[])Array of default time formats.


Top ↑

Source

File: wp-admin/options-general.php

View on Trac


Top ↑

Changelog

Changelog
VersionDescription
2.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.