WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 1390 | * Filter the comment reply link arguments. |
| 1391 | * |
| 1392 | * @since 4.1.0 |
| 1393 | * |
| 1394 | * @param array $args Comment reply link arguments. See {@see get_comment_reply_link()} |
| 1395 | * for more information on accepted arguments. |
| 1396 | * @param object $comment The object of the comment being replied to. |
| 1397 | * @param WP_Post $post The {@see WP_Post} object. |
| 1398 | */ |
| 1399 | $args = apply_filters( 'comment_reply_link_args', $args, $comment, $post ); |
| 1400 | |
| 1401 | if ( get_option( 'comment_registration' ) && ! is_user_logged_in() ) { |
| 1402 | $link = sprintf( '<a rel="nofollow" class="comment-reply-login" href="%s">%s</a>', |
| 1403 | esc_url( wp_login_url( get_permalink() ) ), |
| 1404 | $args['login_text'] |
| 1405 | ); |
| 1406 | } else { |
| 1407 | $onclick = sprintf( 'return addComment.moveForm( "%1$s-%2$s", "%2$s", "%3$s", "%4$s" )', |
| 1408 | $args['add_below'], $comment->comment_ID, $args['respond_id'], $post->ID |