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



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

Depuis3.7.0
Dépréciéen/a
› do_action( "save_post_{$post->post_type}", $post_id, $post, $update )
Paramètres: (3)
  • () post_id Post ID.
    Requis: Oui
  • () post Post object.
    Requis: Oui
  • () update Whether this is an existing post being updated.
    Requis: Oui
Défini(e) dans:
Codex:

Fires once a post has been saved.

The dynamic portion of the hook name, `$post->post_type`, refers to the post type slug. Possible hook names include: - `save_post_post` - `save_post_page`




Source

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