Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * @param string $value
- * @param \GeminiLabs\SiteReviews\Modules\Html\Tags\Tag $tag
- * @return string
- */
- add_filter('site-reviews/review/value/author', function ($value, $tag) {
- if ($user = $tag->review->user()) {
- $url = get_author_posts_url($user->ID); // change this part if using custom User URLs
- return sprintf('<a href="%s">%s</a>', $url, $value);
- }
- return $value;
- }, 10, 2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement