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



time_formats › WordPress Filter Hooks

Since2.7.0
Deprecatedn/a
apply_filters( 'time_formats', array( __( 'g:i a' )
Parameters:
  • (string[]) $default_time_formats Array of default time formats.
    Required: Yes
Defined at:
Codex:

Filters the default time formats.





Source

$time_formats = array_unique( apply_filters( 'time_formats', array( __( 'g:i a' ), 'g:i A', 'H:i' ) ) );