wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



save_post_{$post->post_type} › Działania WordPress Hooks

Od3.7.0
Przestarzałyn/a
› do_action( "save_post_{$post->post_type}", $post_id, $post, $update )
Parametry: (3)
  • () post_id Post ID.
    Wymagane: Tak
  • () post Post object.
    Wymagane: Tak
  • () update Whether this is an existing post being updated.
    Wymagane: Tak
Zdefiniowane na:
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`




Źródło

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