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



trashed_post › Hooks de Ações WordPress

Desde6.3.0
Obsoleton/a
› do_action( 'trashed_post', $post_id, $previous_status )
Parâmetros: (2)
  • () post_id Post ID.
    Required: Yes
  • () previous_status The status of the post at the point where it was trashed.
    Required: Yes
Definido em:
Codex:

Fires after a post is sent to the Trash.





Fonte

do_action( 'trashed_post', $post_id, $previous_status );