Un motore di ricerca WordPress per sviluppatori e autori di temi



save_post_{$post->post_type} ›

Da3.7.0
Deprecaton/a
do_action( "save_post_{$post->post_type}", $post_ID, $post, $update )
Parametri: (3)
  • (int) $post_ID Post ID.
    Richiesto:
  • (WP_Post) $post Post object.
    Richiesto:
  • (bool) $update Whether this is an existing post being updated or not.
    Richiesto:
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.





Sorgenti

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