post_reply_link() WordPress Function

The post_reply_link() function allows you to display a link that will take the user to the reply form for a particular comment. This is useful if you want to give the user the ability to reply to a comment from the front-end of your site.

post_reply_link( array $args = array(), int|WP_Post $post = null ) #

Displays the HTML content for reply to post link.


Description

Top ↑

See also


Top ↑

Parameters

$args

(array)(Optional) Override default options.

Default value: array()

$post

(int|WP_Post)(Optional)Post ID or WP_Post object the comment is going to be displayed on. Default current post.

Default value: null


Top ↑

Source

File: wp-includes/comment-template.php

function post_reply_link( $args = array(), $post = null ) {
	echo get_post_reply_link( $args, $post );
}


Top ↑

Changelog

Changelog
VersionDescription
2.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More