Un motore di ricerca WordPress per sviluppatori e autori di temi



comment_{$old_status}_to_{$new_status} ›

Da2.7.0
Deprecaton/a
do_action( "comment_{$old_status}_to_{$new_status}", $comment )
Parametri:
  • (WP_Comment) $comment Comment object.
    Richiesto:
Definito a:
Codex:

Fires when the comment status is in transition from one specific status to another.

The dynamic portions of the hook name, $old_status, and $new_status, refer to the old and new comment statuses, respectively.





Sorgenti

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