Advertisement
geminilabs

Untitled

Mar 24th, 2023 (edited)
895
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.36 KB | None | 0 0
  1. add_filter('site-reviews/assigned_users/profile_id', function ($profileId) {
  2.     if (!empty($profileId)) {
  3.         return $profileId;
  4.     }
  5.     if (is_author()) {
  6.         global $wp_query;
  7.         $author = $wp_query->get_queried_object();
  8.         if (isset($author->ID)) {
  9.             $profileId = $author->ID;
  10.         }
  11.     }
  12.     return $profileId;
  13. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement