the link is called from within comment_form()
(/wp-includes/comment-template.php line 1539) :
'must_log_in' => '<p class="must-log-in">' . sprintf( __( 'You must be <a href="https://wordpress.stackexchange.com/questions/71100/%s">logged in</a> to post a comment.' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>',
and uses wp_login_url()
(/wp-includes/general-template.php lines 224+) which uses a filter on its return:
return apply_filters('login_url', $login_url, $redirect);
you might be able to add a filter function to functions.php of your theme, to influence the link;
example:
add_filter( 'link_url', 'wpse_71100_linkchanger');
function wpse_71100_linkchanger( $link ) {
/*whatever you need to do with the link*/
return $link;
}
Related Posts:
- Add option to disable comments on a per posts basis?
- Paginate result set from $wpdb->get_results()
- Change Comment Author Display Name
- How to allow the reply link to remain on the comment form after I have reached my 10 nested comment limit?
- Threaded comments – deleting parent comment leads to orphan comments
- How to remove commenters ability to add hyperlinks to comments?
- How can I edit the email sent when a new comment is received?
- How to remove or replace the log-in link for comment replies?
- How to Block Access to Standard Login Flow and Comment Flow
- Add Comment Custom Field
- Remove link preview in discussion dashboard
- Can’t add default comments to custom post type
- where to modify get_comment_author_link()?
- Does Akismet plugin expose any hooks, functions, class that can work with custom code?
- Comments Feed & Custom Post Statuses
- Multiple Comment Forms in a single page [closed]
- How to no follow the paginated comments
- remove_filter( ‘comment_author’, ‘floated_admin_avatar’ ); doesn’t work
- Does wp_new_comment expect a comment in HTML?
- Comments: Approve when admin Replies, from the Front end
- How to insert Comment metadata via REST API
- How to remove these comments and html tags from the content?
- Show only if x comments?
- Display WordPress commenter nice name
- In wp_list_comments(), what is a short_ping?
- Ajax comments not working
- Changing the comments link produced by the get_comments_link() and get_comments_pagenum_link() functions
- How to display nothing (instead default) when no user gravatar is present?
- Redirect to page 2 after comment
- How to change avatar of the comment author using comment ID?
- WordPress Comments are automatically publishing
- save_post action hook for comments
- Automatically increase comment karma on comment save
- How to handle upvotes and downvotes of disqus comments after importing disqus comments to wordpress?
- All users/comments suspected as bot? [closed]
- Count comment threads, not total comments in a post
- Show comments of a user post only when they are login
- comments in Admin
- How to get and use the the number of days since the last comment?
- Get all child comments ids from parent comment id
- How do I add class to an admin comment?
- Best way to tell if a comment is from a user?
- How can get comment link by comment id?
- How to amend time format of comments, using child-theme?
- How to make comments private for commentor and post author
- Name of comment field differs on different sites
- WordPress Spam Comment Filter
- Which hook do I use to edit pending comment count on wordpress dashboard?
- Add comment_id on Comments page within wp-admin
- Sent comments notifications to multiple users
- comment button shows only logged in users wordpress
- Getting comments of an specefic user
- I update a post and it creates a pingback? Any idea why?
- How can I embed comments plugin to my own website?
- get only one last comment from each post
- Customise Comment form
- Limit action in comment according to IP
- How to get recent comment link
- stumped on add_action hook to delete_comment – any ideas?
- Can I create a new comment type?
- Avoiding calls to theme-compat
- Allow tags between shortcode in comments
- How / where is the wp_query object created for RSS feeds?
- Separate page for comments using permalinks and add_rewrite_rule
- Return count for characters in the comment and perform action based on the length
- Delete/Spam Comment Button
- Who approved a comment, to show up in dashboard
- Cannot Remove Title Reply from Custom Comment Template for Signup Page
- How to make email field not required in comments?
- I have an odd field with a purple background, mentioning HTML-codes to use while leaving comments
- No comment Section but still got a Comment
- How to prevent users/authors from seing IP/email of new commentators?
- Why are my threaded comments not quite working? [closed]
- $post->comment_status always returns ‘closed’
- Order comments in admin by custom date
- WordPress Comments – Divide by conversation like Medium.com
- I want to limit registered user to 1 comment per post in WordPress
- What is wrong with this? [closed]
- Comment moderation
- I have tried using Plugins to remove 72K comments with no success
- Redirect first time comments
- Posting XML in comment section
- How to check if post has previous_comments_link() and next_comments_link()
- Comment text area in single blog post and show comments if approved
- Comments – Ensure the correct field is highlighted for nested replies
- How to ‘If Author’ Comments Check
- selectively disable akismet
- How to hold all comments for moderation, including author’s comments on own post
- Comment Blacklist
- WordPress error when sending comment
- WordPress Page Template: Comment Filtering with Querystring
- Modify “Recent Comments” List in WP-Admin
- Comment submission & navigation redirects to default language
- comments are going to spam
- wp_list_comments adds unnecessary elements
- Why default comment fields don’t show up?
- How to enable truly anonymous posting in bbPress forums? [closed]
- How to disable comments on new blog post, but allow on new products?
- Query comments with non-empty ‘author_url’ value on Admin Comments Screen
- Customize the new comment notifications sent to the post author after the comment is approved