Uma área de pesquisa sobre o WordPress para devs e autores do tema



rest_delete_{$this->post_type} ›

Desde4.7.0
Obsoleton/a
do_action( "rest_delete_{$this->post_type}", $post, $response, $request )
Parâmetros: (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
Definido em:
Codex:

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.





Fonte

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