delete_post_{$post->post_type}

delete_post_{$post->post_type}

Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

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

  • /wp-includes/post.php line 3772
    3768
    3769
    3770
    3771
    3772
    3773
    3774
    3775
    3776
    3777
    3778
    *
     * @param int     $post_id Post ID.
     * @param WP_Post $post    Post object.
     */
    do_action( "delete_post_{$post->post_type}", $post_id, $post );
     
    /**
     * Fires immediately before a post is deleted from the database.
     *
     * @since 1.2.0
     * @since 5.5.0 Added the `$post` parameter.