comment_unapproved_pingback хук-событиеWP 2.7.0

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 'comment', 'pingback', or 'trackback'.

Это один из вариантов динамического хука comment_(new_status)_(comment_type)


add_action( 'comment_unapproved_pingback', 'wp_kama_comment_unapproved_pingback_action', 10, 2 );

 * Function for `comment_unapproved_pingback` action-hook.
 * @param string     $comment_id The comment ID as a numeric string.
 * @param WP_Comment $comment    Comment object.
 * @return void
function wp_kama_comment_unapproved_pingback_action( $comment_id, $comment ){

	// action...
The comment ID as a numeric string.
Comment object.

Список изменений

С версии 2.7.0 Введена.

Где вызывается хук

wp-includes/comment.php 1846
do_action( "comment_{$new_status}_{$comment->comment_type}", $comment->comment_ID, $comment );

Где используется хук в WordPress

Использование не найдено.