Filters the comment reply link arguments.
Parameters
$args
array- Comment reply link arguments. See get_comment_reply_link() for more information on accepted arguments.
More Arguments from get_comment_reply_link( … $args )
Override default arguments.
add_below
stringThe first part of the selector used to identify the comment to respond below.
The resulting value is passed as the first parameter to addComment.moveForm(), concatenated as $add_below-$comment->comment_ID. Default'comment'
.respond_id
stringThe selector identifying the responding comment. Passed as the third parameter to addComment.moveForm(), and appended to the link URL as a hash value.
Default'respond'
.reply_text
stringThe text of the Reply link. Default'Reply'
.login_text
stringThe text of the link to reply if logged out. Default ‘Log in to Reply’.max_depth
intThe max depth of the comment tree. Default 0.depth
intThe depth of the new comment. Must be greater than 0 and less than the value of the'thread_comments_depth'
option set in Settings > Discussion. Default 0.before
stringThe text or HTML to add before the reply link.after
stringThe text or HTML to add after the reply link.
$comment
WP_Comment- The object of the comment being replied to.
$post
WP_Post- The WP_Post object.
Source
$args = apply_filters( 'comment_reply_link_args', $args, $comment, $post );
Changelog
Version | Description |
---|---|
4.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.