Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



rest_delete_{$this->post_type} ›

Seit4.7.0
Veraltetn/v
do_action( "rest_delete_{$this->post_type}", $post, $response, $request )
Parameter: (3)
  • (object) $post The deleted or trashed post.
    Erforderlich: Ja
  • (WP_REST_Response) $response The response data.
    Erforderlich: Ja
  • (WP_REST_Request) $request The request sent to the API.
    Erforderlich: Ja
Definiert in:
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.





Quellcode

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