Title: post_reply_link
Published: April 25, 2014
Last modified: May 20, 2026

---

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

## In this article

 * [Description](https://developer.wordpress.org/reference/functions/post_reply_link/?output_format=md#description)
    - [See also](https://developer.wordpress.org/reference/functions/post_reply_link/?output_format=md#see-also)
 * [Parameters](https://developer.wordpress.org/reference/functions/post_reply_link/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/functions/post_reply_link/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/post_reply_link/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/post_reply_link/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/functions/post_reply_link/?output_format=md#wp--skip-link--target)

Displays the HTML content for reply to post link.

## 󠀁[Description](https://developer.wordpress.org/reference/functions/post_reply_link/?output_format=md#description)󠁿

### 󠀁[See also](https://developer.wordpress.org/reference/functions/post_reply_link/?output_format=md#see-also)󠁿

 * [get_post_reply_link()](https://developer.wordpress.org/reference/functions/get_post_reply_link/)

## 󠀁[Parameters](https://developer.wordpress.org/reference/functions/post_reply_link/?output_format=md#parameters)󠁿

 `$args`arrayoptional

Override default options.

Default:`array()`

`$post`int|[WP_Post](https://developer.wordpress.org/reference/classes/wp_post/)
optional

Post ID or [WP_Post](https://developer.wordpress.org/reference/classes/wp_post/)
object the comment is going to be displayed on.
 Default current post.

Default:`null`

## 󠀁[Source](https://developer.wordpress.org/reference/functions/post_reply_link/?output_format=md#source)󠁿

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

[View all references](https://developer.wordpress.org/reference/files/wp-includes/comment-template.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/comment-template.php#L1979)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/comment-template.php#L1979-L1981)

## 󠀁[Related](https://developer.wordpress.org/reference/functions/post_reply_link/?output_format=md#related)󠁿

| Uses | Description | 
| [get_post_reply_link()](https://developer.wordpress.org/reference/functions/get_post_reply_link/)`wp-includes/comment-template.php` |

Retrieves HTML content for reply to post link.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/post_reply_link/?output_format=md#changelog)󠁿

| Version | Description | 
| [2.7.0](https://developer.wordpress.org/reference/since/2.7.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fpost_reply_link%2F)
before being able to contribute a note or feedback.