A WordPress-centric search engine for devs and theme authors



delete_post ›

Since1.2.0
Deprecatedn/a
do_action( 'delete_post', $postid )
Parameters:
  • (int) $postid Post ID.
    Required: Yes
Defined at:
Codex:

Fires immediately before a post is deleted from the database.





Source

do_action( 'delete_post', $postid );