trashed_post, $post_id, $previous_status
trashed_post, $post_id, $previous_status
Appears in: 7.0.3
Hook Type: action
Displaying hooks found in version: 7.0.3do_action('trashed_post, $post_id, $previous_status') is found 2 times:
- /wp-includes/class-wp-customize-manager.php line 3129
wp_trash_post_comments( $post_id ); /** This action is documented in wp-includes/post.php */ do_action( 'trashed_post', $post_id, $previous_status ); return $post; } /** * Handles request to trash a changeset.
- /wp-includes/post.php line 4075
* * @param int $post_id Post ID. * @param string $previous_status The status of the post at the point where it was trashed. */ do_action( 'trashed_post', $post_id, $previous_status ); return $post; } /** * Restores a post from the Trash.