Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: deleted_post_{$post->post_type}

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
3623       *
3624       * The dynamic portion of the hook name, `$post->post_type`, refers to
3625       * the post type slug.
3626       *
3627       * @since 6.6.0
3628       *
3629       * @param int     $post_id Post ID.
3630       * @param WP_Post $post    Post object.
3631       */
3632      do_action( "deleted_post_{$post->post_type}", $post_id, $post );
3633
3634      /**
3635       * Fires immediately after a post is deleted from the database.
3636       *
3637       * @since 2.2.0
3638       * @since 5.5.0 Added the `$post` parameter.
3639       *
3640       * @param int     $post_id Post ID.
3641       * @param WP_Post $post    Post object.