A WordPress-centric search engine for devs and theme authors



before_delete_post ›

Since3.2.0
Deprecatedn/a
do_action( 'before_delete_post', $postid )
Parameters:
  • (int) $postid Post ID.
    Required: Yes
See:
  • wp_delete_post()
Defined at:
Codex:

Fires before a post is deleted, at the start of wp_delete_post().





Source

do_action( 'before_delete_post', $postid );