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



comment_{$new_status}_{$comment->comment_type} ›

Seit2.7.0
Veraltetn/v
do_action( "comment_{$new_status}_{$comment->comment_type}", $comment->comment_ID, $comment )
Parameter: (2)
  • (int) $comment_ID The comment ID.
    Erforderlich: Ja
  • (WP_Comment) $comment Comment object.
    Erforderlich: Ja
Definiert in:
Codex:

Fires when the status of a specific comment type is in transition.

The dynamic portions of the hook name, $new_status, and $comment->comment_type, refer to the new comment status, and the type of comment, respectively.

Typical comment types include an empty string (standard comment), 'pingback', or 'trackback'.





Quellcode

do_action( "comment_{$new_status}_{$comment->comment_type}", $comment->comment_ID, $comment );