get_the_time

Advertisement

Summery Summery

Filters the time a post was written.

Syntax Syntax

apply_filters( 'get_the_time', string $the_time, string $format, int|WP_Post $post )

Parameters Parameters

$the_time

The formatted time.

$format

Format to use for retrieving the time the post was written. Accepts 'G', 'U', or PHP date format value specified in 'time_format' option. Default empty.

$post

WP_Post object or ID.

Source Source

File: wp-includes/general-template.php

Advertisement

Changelog Changelog

Changelog
Version Description
1.5.0 Introduced.

Advertisement

Leave a Reply