wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_trash_post › WordPress Action Hooks

Since6.3.0
Deprecatedn/a
do_action( 'wp_trash_post', $post_id, $previous_status )
Parameters: (2)
  • () post_id Post ID.
    Required: Yes
  • () previous_status The status of the post about to be trashed.
    Required: Yes
Defined at:
Codex:

Fires before a post is sent to the Trash.





Source

do_action( 'wp_trash_post', $post_id, $previous_status );