get_post_time

get_post_time

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('get_post_time') is found 1 times:

  • /wp-includes/general-template.php line 2772
    	 * @param string     $format Format to use for retrieving the time the post was written.
    	 *                           Accepts 'G', 'U', or PHP date format.
    	 * @param bool       $gmt    Whether to retrieve the GMT time.
    	 */
    	return apply_filters( 'get_post_time', $time, $format, $gmt );
    }
    
    /**
     * Retrieves post published or modified time as a `DateTimeImmutable` object instance.
     *
     * The object will be set to the timezone from WordPress settings.