comment_reply_link_args
Filters the comment reply link arguments.
Usage
add_filter( 'comment_reply_link_args', 'wp_kama_comment_reply_link_args_filter', 10, 3 ); /** * Function for `comment_reply_link_args` filter-hook. * * @param array $args Comment reply link arguments. See get_comment_reply_link() for more information on accepted arguments. * @param WP_Comment $comment The object of the comment being replied to. * @param WP_Post $post The WP_Post object. * * @return array */ function wp_kama_comment_reply_link_args_filter( $args, $comment, $post ){ // filter... return $args; }
- $args(array)
- Comment reply link arguments. See get_comment_reply_link() for more information on accepted arguments.
- $comment(WP_Comment)
- The object of the comment being replied to.
- $post(WP_Post)
- The WP_Post object.
Changelog
Since 4.1.0 | Introduced. |
Where the hook is called
comment_reply_link_args
wp-includes/comment-template.php 1815
$args = apply_filters( 'comment_reply_link_args', $args, $comment, $post );