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 (!function_exists('um_user_profile_url')) {
- return $name;
- }
- if ($user = $tag->review->user()) {
- $url = um_user_profile_url($user->ID);
- return sprintf('<a href="%s">%s</a>', $url, $name);
- }
- return $name;
- }, 10, 2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement