wpseek.com
WordPress开发者和主题制作者的搜索引擎



deleted_post_{$post->post_type} › WordPress动作钩子

Since6.6.0
已弃用n/a
› do_action( "deleted_post_{$post->post_type}", $post_id, $post )
参数: (2)
  • () post_id Post ID.
    Required: Yes
  • () post Post object.
    Required: Yes
定义在:
文档:

Fires immediately after a post is deleted from the database.

The dynamic portion of the hook name, `$post->post_type`, refers to the post type slug.




源码

do_action( "deleted_post_{$post->post_type}", $post_id, $post );