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



delete_post_{$post->post_type} › Hooks de Ações WordPress

Desde6.6.0
Obsoleton/a
› do_action( "delete_post_{$post->post_type}", $post_id, $post )
Parâmetros: (2)
  • () post_id Post ID.
    Required: Yes
  • () post Post object.
    Required: Yes
Definido em:
Codex:

Fires immediately before a post is deleted from the database.

The dynamic portion of the hook name, `$post->post_type`, refers to the post type slug.




Fonte

do_action( "delete_post_{$post->post_type}", $post_id, $post );