the_time WordPress Filter Hook

The time hook is one of the most important hooks in WordPress. It is used to set the timezone for your site. It is also used to display the current time in your site's header.

apply_filters( 'the_time', string $get_the_time, string $format ) #

Filters the time a post was written for display.


Parameters

$get_the_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.


Top ↑

Source

File: wp-includes/general-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
0.71Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More