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

(string) The formatted time.

$format

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

$gmt

(bool) 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

This site uses Akismet to reduce spam. Learn how your comment data is processed.