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



rest_delete_{$this->post_type} › WordPress动作钩子

Since4.7.0
已弃用n/a
› do_action( "rest_delete_{$this->post_type}", $post, $response, $request )
参数: (3)
  • () post The deleted or trashed post.
    Required: Yes
  • () response The response data.
    Required: Yes
  • () request The request sent to the API.
    Required: Yes
定义在:
文档:

Fires immediately after a single post is deleted or trashed via the REST API.

They dynamic portion of the hook name, `$this->post_type`, refers to the post type slug. Possible hook names include: - `rest_delete_post` - `rest_delete_page` - `rest_delete_attachment`




源码

do_action( "rest_delete_{$this->post_type}", $post, $response, $request );