Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Thanks I ended up checking if the post_status was publish Commented Oct 29, 2013 at 8:02
  • For whatever reason, wp_is_post_revision and wp_is_post_autosave were always false in my plugin, even when creating a new post, but this works a charm. Thanks! Commented Jun 10, 2020 at 20:35