Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter('site-reviews/review/value/assigned_users', function ($value, $tag) {
- $users = [];
- foreach ($tag->review->assignedUsers() as $user) {
- $url = get_author_posts_url($user->ID); // change this part if using custom User URLs
- $users[] = sprintf('<a href="%s">%s</a>', $url, $user->display_name);
- }
- $and = __('and', 'site-reviews');
- $values[] = implode(" {$and} ", array_splice($users, -2));
- return implode(', ', $values);
- }, 10, 2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement