WordPress at a glance
filter is not described

date_formats filter-hook . WP 2.7.0

Filters the default date formats.

Usage

add_filter( 'date_formats', 'filter_function_name_114' );
function filter_function_name_114( $default_date_formats ){
	// filter...

	return $default_date_formats;
}
$default_date_formats(array)
Array of default date formats.

Notes

  • Since 4.0.0 Added ISO date standard YYYY-MM-DD format.

Where the hook is called

In file: /wp-admin/options-general.php
date_formats
wp-admin/options-general.php 299
$date_formats = array_unique( apply_filters( 'date_formats', array( __( 'F j, Y' ), 'Y-m-d', 'm/d/Y', 'd/m/Y' ) ) );

Where the hook is used (in WP core)

Does not used.