wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



delete_post_{$post->post_type} › Les Actions WordPress

Depuis6.6.0
Dépréciéen/a
› do_action( "delete_post_{$post->post_type}", $post_id, $post )
Paramètres: (2)
  • () post_id Post ID.
    Requis: Oui
  • () post Post object.
    Requis: Oui
Défini(e) dans:
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.




Source

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