Un motore di ricerca WordPress per sviluppatori e autori di temi



{$old_status}_to_{$new_status} ›

Da2.3.0
Deprecaton/a
do_action( "{$old_status}_to_{$new_status}", $post )
Parametri:
  • (WP_Post) $post Post object.
    Richiesto:
Definito a:
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.





Sorgenti

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