wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



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

Seit6.6.0
Veraltetn/v
do_action( "deleted_post_{$post->post_type}", $post_id, $post )
Parameter: (2)
  • () post_id Post ID.
    Erforderlich: Ja
  • () post Post object.
    Erforderlich: Ja
Definiert in:
Codex:

Fires immediately after a post is deleted from the database.

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




Quellcode

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