wp_comment_reply хук-фильтрWP 2.7.0

Filters the in-line comment reply-to form output in the Comments list table.

Returning a non-empty value here will short-circuit display of the in-line comment-reply form in the Comments list table, echoing the returned value instead.

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

add_filter( 'wp_comment_reply', 'wp_kama_comment_reply_filter', 10, 2 );

/**
 * Function for `wp_comment_reply` filter-hook.
 * 
 * @param string $content The reply-to form content.
 * @param array  $args    An array of default args.
 *
 * @return string
 */
function wp_kama_comment_reply_filter( $content, $args ){

	// filter...
	return $content;
}
$content(строка)
The reply-to form content.
$args(массив)
An array of default args.

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

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

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

wp_comment_reply()
wp_comment_reply
wp-admin/includes/template.php 430-438
$content = apply_filters(
	'wp_comment_reply',
	'',
	array(
		'position' => $position,
		'checkbox' => $checkbox,
		'mode'     => $mode,
	)
);

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

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