How can get comment id from comment link?
Based on your comment, you can get the comment ID via JavaScript, and here’s a sample function you can use/try: <script> function getCommentIdFromUrl( url ) { return ( ( url && /#comment-(\d+)$/.test( url ) ) || ( location.hash && /^#comment-(\d+)$/.test( location.hash ) ) ) && RegExp.$1; } </script> So if the URL of the current … Read more