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