deleted_post_{$post->post_type}

deleted_post_{$post->post_type}

Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.8

do_action('deleted_post_{$post->post_type}') is found 1 times:

  • /wp-includes/post.php line 3851
    3847
    3848
    3849
    3850
    3851
    3852
    3853
    3854
    3855
    3856
    3857
    *
     * @param int     $post_id Post ID.
     * @param WP_Post $post    Post object.
     */
    do_action( "deleted_post_{$post->post_type}", $post_id, $post );
     
    /**
     * Fires immediately after a post is deleted from the database.
     *
     * @since 2.2.0
     * @since 5.5.0 Added the `$post` parameter.