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



delete_post_{$post->post_type} › WordPress Action Hooks

Da6.6.0
Deprecaton/a
› do_action( "delete_post_{$post->post_type}", $post_id, $post )
Parametri: (2)
  • () post_id Post ID.
    Richiesto: Sì
  • () post Post object.
    Richiesto: Sì
Definito a:
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.




Sorgenti

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