apply_filters( ‘time_formats’, string[] $default_time_formats )

In this article

Filters the default time formats.

Parameters

$default_time_formatsstring[]
Array of default time formats.

Source

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

Changelog

VersionDescription
2.7.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.