Filter hook 'wp_comment_reply'

in WP Core File wp-admin/includes/template.php at line 430

View Source

wp_comment_reply

Filter Hook
Description
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.

Hook Information

File Location wp-admin/includes/template.php View on GitHub
Hook Type Filter
Line Number 430

Hook Parameters

Type Name Description
string $content The reply-to form content.
array $args An array of default args.

Usage Examples

Basic Usage
<?php
// Hook into wp_comment_reply
add_filter('wp_comment_reply', 'my_custom_filter', 10, 2);

function my_custom_filter($content, $args) {
    // Your custom filtering logic here
    return $content;
}

Source Code Context

wp-admin/includes/template.php:430 - How this hook is used in WordPress core
<?php
 425  	 * @see wp_comment_reply()
 426  	 *
 427  	 * @param string $content The reply-to form content.
 428  	 * @param array  $args    An array of default args.
 429  	 */
 430  	$content = apply_filters(
 431  		'wp_comment_reply',
 432  		'',
 433  		array(
 434  			'position' => $position,
 435  			'checkbox' => $checkbox,

PHP Documentation

<?php
/**
	 * 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.
	 *
	 * @since 2.7.0
	 *
	 * @see wp_comment_reply()
	 *
	 * @param string $content The reply-to form content.
	 * @param array  $args    An array of default args.
	 */
Quick Info
  • Hook Type: Filter
  • Parameters: 2
  • File: wp-admin/includes/template.php
Related Hooks

Related hooks will be displayed here in future updates.