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



{$old_status}_to_{$new_status} › Działania WordPress Hooks

Od2.3.0
Przestarzałyn/a
› do_action( "{$old_status}_to_{$new_status}", $post )
Parametry:
  • () post Post object.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Fires when a post is transitioned from one status to another.

The dynamic portions of the hook name, `$new_status` and `$old_status`, refer to the old and new post statuses, respectively. Possible hook names include: - `draft_to_publish` - `publish_to_trash` - `pending_to_draft`




Źródło

do_action( "{$old_status}_to_{$new_status}", $post );