wp_comment_reply
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.
Usage
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(string)
- The reply-to form content.
- $args(array)
- An array of default args.
Changelog
Since 2.7.0 | Introduced. |
Where the hook is called
wp_comment_reply
wp-admin/includes/template.php 430-438
$content = apply_filters( 'wp_comment_reply', '', array( 'position' => $position, 'checkbox' => $checkbox, 'mode' => $mode, ) );