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



comment_{$old_status}_to_{$new_status} ›

Seit2.7.0
Veraltetn/v
do_action( "comment_{$old_status}_to_{$new_status}", $comment )
Parameter:
  • (WP_Comment) $comment Comment object.
    Erforderlich: Ja
Definiert in:
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.





Quellcode

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