wordpress get post time 1

wordpress get post time

// Retrieve the time at which the post was written.
get_the_time( string $format = '', int|WP_Post $post = null )

Here is what the above code is Doing:
1. We’re using the get_the_time() function to retrieve the time at which the post was written.
2. We’re using the get_the_date() function to retrieve the date at which the post was written.
3. We’re using the get_the_modified_time() function to retrieve the time at which the post was last modified.
4. We’re using the get_the_modified_date() function to retrieve the date at which the post was last modified.

Similar Posts