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

Filters the localized time a post was written.


Description Description


Parameters Parameters

$time

(string) The formatted time.

$d

(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.


Top ↑

Source Source

File: wp-includes/general-template.php

View on Trac


Top ↑

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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