wpseek.com
A WordPress-centric search engine for devs and theme authors



date_formats › WordPress Filter Hooks

Since4.0.0
Deprecatedn/a
apply_filters( 'date_formats', array( __( 'F j, Y' )
Parameters:
  • (string[]) $default_date_formats Array of default date formats.
    Required: Yes
Defined at:
Codex:

Filters the default date formats.





Source

$date_formats = array_unique( apply_filters( 'date_formats', array( __( 'F j, Y' ), 'Y-m-d', 'm/d/Y', 'd/m/Y' ) ) );