Need help in changing comment link hostname

Hello!

Disclaimer: This is bit off-topic. I am in process of discovering email reply solution for static site.

My WordPress Dashboard is located https://backend.example.com [Pass protected]
But frontend is at https://www.example.com

When I reply to comment from Dashboard path, it would email a follow-up comment link to the visitor
Example: http://backend.example.com/hello-world/#comment-1

To send user correct destination instead 401, is it possible to send comment link with frontend hostname?

http://www.example.com/hello-world/#comment-1

Inside plugin, I see related code like this

		$permalink =  get_comment_link($parent_id);

		$mail_message = str_replace('[commentlink]', $permalink, $mail_message);

Please share some ideas.

Thanks

Update: No worries. I tried another plugin and it worked perfectly with the help of its author.

1 Like

Thanks for updating with solution and thanks for donating to that developer, as you’ve done for me before! Those really help keep the open source stuff happening. Not that it should be a requirement, but definitely helps reward people!

1 Like