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



{$old_status}_to_{$new_status} ›

Seit2.3.0
Veraltetn/v
do_action( "{$old_status}_to_{$new_status}", $post )
Parameter:
  • (WP_Post) $post Post object.
    Erforderlich: Ja
Definiert in:
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.





Quellcode

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