wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



save_post_{$post->post_type} › Hooks de Ações WordPress

Desde3.7.0
Obsoleton/a
› do_action( "save_post_{$post->post_type}", $post_id, $post, $update )
Parâmetros: (3)
  • () post_id Post ID.
    Required: Yes
  • () post Post object.
    Required: Yes
  • () update Whether this is an existing post being updated.
    Required: Yes
Definido em:
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`




Fonte

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