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



wp_after_insert_post › Hooks de Ações WordPress

Desde5.6.0
Obsoleton/a
› do_action( 'wp_after_insert_post', $post_id, $post, $update, $post_before )
Parâmetros: (4)
  • () post_id Post ID.
    Required: Yes
  • () post Post object.
    Required: Yes
  • () update Whether this is an existing post being updated.
    Required: Yes
  • () post_before Null for new posts, the WP_Post object prior to the update for updated posts.
    Required: Yes
Definido em:
Codex:

Fires once a post, its terms and meta data has been saved.





Fonte

do_action( 'wp_after_insert_post', $post_id, $post, $update, $post_before );