| | |
| | | <?php |
| | | namespace JVBase\managers\SEO\render\Traits\_Properties; |
| | | |
| | | use JVBase\integrations\services\GoogleMyBusiness; |
| | | use JVBase\managers\SEO\render\Thing\CreativeWork\Review; |
| | | use JVBase\managers\SEO\render\Thing\Intangible\Rating\Rating; |
| | | use JVBase\managers\SEO\render\Thing\Person\Person; |
| | |
| | | { |
| | | $userID = (int) get_post_meta($meta->id(), BASE.'profile_link', true); |
| | | if ($userID && $userID > 0) { |
| | | $integration = JVB()->connect('gmb', $userID); |
| | | $integration = GoogleMyBusiness::getInstance(); |
| | | $integration->switchUser($userID); |
| | | if ($integration && $integration->isSetUp()){ |
| | | $fetched = $integration->getReviews(20); |
| | | |