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



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

Da3.7.0
Deprecaton/a
› do_action( "save_post_{$post->post_type}", $post_id, $post, $update )
Parametri: (3)
  • () post_id Post ID.
    Richiesto: Sì
  • () post Post object.
    Richiesto: Sì
  • () update Whether this is an existing post being updated.
    Richiesto: Sì
Definito a:
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`




Sorgenti

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