Jake Vanderwerf
2026-04-15 c4aa5cdb5e90ad4b420e22772797d16980232a2b
inc/managers/SEO/render/Traits/_Properties/addressTrait.php
@@ -1,6 +1,7 @@
<?php
namespace JVBase\managers\SEO\render\Traits\_Properties;
use JVBase\base\SchemaHelper;
use JVBase\managers\SEO\render\Thing\Intangible\ContactPoint\PostalAddress;
if (!defined('ABSPATH')) {
@@ -19,7 +20,10 @@
   public function setAddress(PostalAddress|array|string $address):void
   {
      if (is_array($address)){
         $address = PostalAddress::fromArray($address);
         if (!array_key_exists('type', $address)) {
            $address['type'] = 'JVBase\managers\SEO\render\Thing\Intangible\ContactPoint\PostalAddress';
         }
         $address = SchemaHelper::classFromConfig($address);
      }
      $this->address = $address;
   }
@@ -47,7 +51,7 @@
            'addressLocality' => [
               'type'   => 'text',
               'label'  => 'Address Locality',
               'hint'   => 'The locality in which the street address is, and which is in the region. For example, "Park Allen".'
               'hint'   => 'The locality in which the street address is, and which is in the region. For example, "Edmonton".'
            ],
            'addressRegion'   => [
               'type'   => 'text',