Ticket #31813: delete_post_post_type.patch
File delete_post_post_type.patch, 1.5 KB (added by , 10 years ago) |
---|
-
src/wp-includes/post.php
2597 2597 /** 2598 2598 * Fires before a post is deleted, at the start of wp_delete_post(). 2599 2599 * 2600 * The dynamic portion of the hook name, `$post->post_type`, refers to 2601 * the post type slug. 2602 * 2603 * @see wp_delete_post() 2604 * 2605 * @param int $postid Post ID. 2606 */ 2607 do_action( "before_delete_post_{$post->post_type}", $postid ); 2608 2609 /** 2610 * Fires before a post is deleted, at the start of wp_delete_post(). 2611 * 2600 2612 * @since 3.2.0 2601 2613 * 2602 2614 * @see wp_delete_post() … … 2641 2653 /** 2642 2654 * Fires immediately before a post is deleted from the database. 2643 2655 * 2656 * The dynamic portion of the hook name, `$post->post_type`, refers to 2657 * the post type slug. 2658 * 2659 * @param int $postid Post ID. 2660 */ 2661 do_action( "delete_post_{$post->post_type}", $postid ); 2662 2663 /** 2664 * Fires immediately before a post is deleted from the database. 2665 * 2644 2666 * @since 1.2.0 2645 2667 * 2646 2668 * @param int $postid Post ID. … … 2654 2676 /** 2655 2677 * Fires immediately after a post is deleted from the database. 2656 2678 * 2679 * The dynamic portion of the hook name, `$post->post_type`, refers to 2680 * the post type slug. 2681 * 2682 * @param int $postid Post ID. 2683 */ 2684 do_action( "deleted_post_{$post->post_type}", $postid ); 2685 2686 /** 2687 * Fires immediately after a post is deleted from the database. 2688 * 2657 2689 * @since 2.2.0 2658 2690 * 2659 2691 * @param int $postid Post ID.