Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Comment At
- function wp_comment_at ($comment_text, $comment = ''){
- if ($comment->comment_parent > 0) {
- $parrent = $comment->comment_parent;
- $parrent_author = get_comment_author($parrent);
- $comment_text = '@<a href="#comment-' . $parrent . '">' . $parrent_author .'</a> : '.$comment_text;
- }
- return $comment_text;
- }
- add_filter('comment_text', 'wp_comment_at', 20, 2);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement