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



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

Seit3.7.0
Veraltetn/v
do_action( "save_post_{$post->post_type}", $post_id, $post, $update )
Parameter: (3)
  • () post_id Post ID.
    Erforderlich: Ja
  • () post Post object.
    Erforderlich: Ja
  • () update Whether this is an existing post being updated.
    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. Possible hook names include: - `save_post_post` - `save_post_page`




Quellcode

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