delete_post, $post_id, $post
delete_post, $post_id, $post
Appears in: 7.0.3
Hook Type: action
Displaying hooks found in version: 7.0.3do_action('delete_post, $post_id, $post') is found 2 times:
- /wp-includes/post.php line 3905
* * @param int $post_id Post ID. * @param WP_Post $post Post object. */ do_action( 'delete_post', $post_id, $post ); $result = $wpdb->delete( $wpdb->posts, array( 'ID' => $post_id ) ); if ( ! $result ) { return false; } - /wp-includes/post.php line 6763
delete_metadata_by_mid( 'post', $mid ); } /** This action is documented in wp-includes/post.php */ do_action( 'delete_post', $post_id, $post ); $result = $wpdb->delete( $wpdb->posts, array( 'ID' => $post_id ) ); if ( ! $result ) { return false; } /** This action is documented in wp-includes/post.php */ do_action( 'deleted_post', $post_id, $post );