Make WordPress Core

Ticket #31813: delete_post_post_type.patch

File delete_post_post_type.patch, 1.5 KB (added by GunGeekATX, 10 years ago)

Proposed patch

  • src/wp-includes/post.php

     
    25972597        /**
    25982598         * Fires before a post is deleted, at the start of wp_delete_post().
    25992599         *
     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         *
    26002612         * @since 3.2.0
    26012613         *
    26022614         * @see wp_delete_post()
     
    26412653        /**
    26422654         * Fires immediately before a post is deleted from the database.
    26432655         *
     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         *
    26442666         * @since 1.2.0
    26452667         *
    26462668         * @param int $postid Post ID.
     
    26542676        /**
    26552677         * Fires immediately after a post is deleted from the database.
    26562678         *
     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         *
    26572689         * @since 2.2.0
    26582690         *
    26592691         * @param int $postid Post ID.