A WordPress-centric search engine for devs and theme authors



wp_trash_post ›

Since3.3.0
Deprecatedn/a
do_action( 'wp_trash_post', $post_id )
Parameters:
  • (int) $post_id Post ID.
    Required: Yes
Defined at:
Codex:

Fires before a post is sent to the trash.





Source

do_action( 'wp_trash_post', $post_id );