WordPress at Your Fingertips
filter is not described

date_formats filter-hook . WP 2.7.0

Filters the default date formats.


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

	return $default_date_formats;
Array of default date formats.


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

Where the hook is called

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

Where in WP core the hook is used WordPress

Usage not found.