Un motore di ricerca WordPress per sviluppatori e autori di temi



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

Da2.7.0
Deprecaton/a
do_action( "comment_{$new_status}_{$comment->comment_type}", $comment->comment_ID, $comment )
Parametri: (2)
  • (int) $comment_ID The comment ID.
    Richiesto:
  • (WP_Comment) $comment Comment object.
    Richiesto:
Definito a:
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'.





Sorgenti

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