Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



save_post_{$post->post_type} ›

Seit3.7.0
Veraltetn/v
do_action( "save_post_{$post->post_type}", $post_ID, $post, $update )
Parameter: (3)
  • (int) $post_ID Post ID.
    Erforderlich: Ja
  • (WP_Post) $post Post object.
    Erforderlich: Ja
  • (bool) $update Whether this is an existing post being updated or not.
    Erforderlich: Ja
Definiert in:
Codex:

Fires once a post has been saved.

The dynamic portion of the hook name, $post->post_type, refers to the post type slug.





Quellcode

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