Make WordPress Core

Ticket #31813: 31813.diff

File 31813.diff, 1.8 KB (added by DrewAPicture, 9 years ago)

Refresh + docs

  • src/wp-includes/post-functions.php

     
    23352335        }
    23362336
    23372337        /**
     2338         * Fires before a post of a particular post type is deleted, at the start
     2339         * of wp_delete_post().
     2340         *
     2341         * The dynamic portion of the hook name, `$post->post_type`, refers to
     2342         * the post type slug.
     2343         *
     2344         * @since 4.4.0
     2345         *
     2346         * @see wp_delete_post()
     2347         *
     2348         * @param int    $postid    Post ID.
     2349         * @param string $post_type Post type.
     2350         */
     2351        do_action( "before_delete_post_{$post->post_type}", $postid, $post->post_type );
     2352
     2353        /**
    23382354         * Fires before a post is deleted, at the start of wp_delete_post().
    23392355         *
    23402356         * @since 3.2.0
     
    23792395                delete_metadata_by_mid( 'post', $mid );
    23802396
    23812397        /**
     2398         * Fires immediately before a post of a particular post type is deleted
     2399         * from the database.
     2400         *
     2401         * The dynamic portion of the hook name, `$post->post_type`, refers to
     2402         * the post type slug.
     2403         *
     2404         * @since 4.4.0
     2405         *
     2406         * @param int    $postid    Post ID.
     2407         * @param string $post_type Post type.
     2408         */
     2409        do_action( "delete_post_{$post->post_type}", $postid, $post->post_type );
     2410
     2411        /**
    23822412         * Fires immediately before a post is deleted from the database.
    23832413         *
    23842414         * @since 1.2.0
     
    23922422        }
    23932423
    23942424        /**
     2425         * Fires immediately after a post of a particular post type is deleted
     2426         * from the database.
     2427         *
     2428         * The dynamic portion of the hook name, `$post->post_type`, refers to
     2429         * the post type slug.
     2430         *
     2431         * @since 4.4.0
     2432         *
     2433         * @param int    $postid    Post ID.
     2434         * @param string $post_type Post type.
     2435         */
     2436        do_action( "deleted_post_{$post->post_type}", $postid, $post->post_type );
     2437
     2438        /**
    23952439         * Fires immediately after a post is deleted from the database.
    23962440         *
    23972441         * @since 2.2.0