get_post_time

get_post_time

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('get_post_time') is found 1 times:

  • /wp-includes/general-template.php line 2786
    2782
    2783
    2784
    2785
    2786
    2787
    2788
    2789
    2790
    2791
    2792
         * @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.