inc/conditionals.php

largo_post_was_updated()

Has a post been saved after it was created? (Has it been updated?)

Can be used inside or outside the Loop.

Link:

https://github.com/INN/Largo/issues/1259

Since:

0.5.5

Parameters:
  • $post (WP_Post|int|null) – The post
Returns:

bool $hether or not the post has been updated