Un motore di ricerca WordPress per sviluppatori e autori di temi



rest_delete_{$this->post_type} ›

Da4.7.0
Deprecaton/a
do_action( "rest_delete_{$this->post_type}", $post, $response, $request )
Parametri: (3)
  • (object) $post The deleted or trashed post.
    Richiesto:
  • (WP_REST_Response) $response The response data.
    Richiesto:
  • (WP_REST_Request) $request The request sent to the API.
    Richiesto:
Definito a:
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.





Sorgenti

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