wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



rest_delete_{$this->post_type} › WordPress Action Hooks

Da4.7.0
Deprecaton/a
› do_action( "rest_delete_{$this->post_type}", $post, $response, $request )
Parametri: (3)
  • () post The deleted or trashed post.
    Richiesto: Sì
  • () response The response data.
    Richiesto: Sì
  • () request The request sent to the API.
    Richiesto: Sì
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. Possible hook names include: - `rest_delete_post` - `rest_delete_page` - `rest_delete_attachment`




Sorgenti

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