如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款
get_post_reply_link( array $args = array(), int|WP_Post $post = null )
Retrieves HTML content for reply to post link.
参数
- $args
(array)
(Optional)
Override default arguments.
- 'add_below'
(string) The 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 is 'post'. - 'respond_id'
(string) The 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'
(string) Text of the Reply link. Default is 'Leave a Comment'. - 'login_text'
(string) Text of the link to reply if logged out. Default is 'Log in to leave a Comment'. - 'before'
(string) Text or HTML to add before the reply link. - 'after'
(string) Text or HTML to add after the reply link.
Default value: array()
- $post
(int|WP_Post)
(Optional)
Post ID or WP_Post object the comment is going to be displayed>Default value: null
返回
(string|false|null) Link to show comment form, if successful. False, if comments are closed.