Is the first item returned by get_posts() always the latest post?

I want to retrieve the modification date of the latest post. To do this, first I get the latest post:

$latest_post = get_posts()[0];

Can I be certain that the returned object is always the latest post or are there circumstances where the order of objects returned by get_posts() is different?

Read more here:: Is the first item returned by get_posts() always the latest post?

Leave a Reply

Your email address will not be published. Required fields are marked *