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



rest_delete_{$this->post_type} ›

Since4.7.0
已弃用n/a
do_action( "rest_delete_{$this->post_type}", $post, $response, $request )
参数: (3)
  • (object) $post The deleted or trashed post.
    Required: Yes
  • (WP_REST_Response) $response The response data.
    Required: Yes
  • (WP_REST_Request) $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.





源码

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