get_post_time

Advertisement

Summery Summery

Filters the localized time a post was written.

Syntax Syntax

apply_filters( 'get_post_time', string $time, string $format, bool $gmt )

Parameters Parameters

$time

The formatted time.

$format

Format to use for retrieving the time the post was written. Accepts 'G', 'U', or PHP date format. Default 'U'.

$gmt

Whether to retrieve the GMT time. Default false.

Source Source

File: wp-includes/general-template.php

Advertisement

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.

Advertisement

Leave a Reply