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.


Parameters

$default_date_formats

(string[])Array of default date formats.


Top ↑

Source

File: wp-admin/options-general.php

View on Trac


Top ↑

Changelog

Changelog
VersionDescription
4.0.0Added ISO date standard YYYY-MM-DD format.
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.