Jake Vanderwerf
2026-09-06 eef16f5a0f5af0aea313e411534643678ba4bea1
inc/meta/MetaTypeManager.php
@@ -50,6 +50,11 @@
            'sanitize' => 'sanitize_email',
         'default'   => '',
        ],
        'phone' => [
            'type' => 'string',
            'sanitize' => 'sanitizePhone',
         'default'   => '',
        ],
        'url' => [
            'type' => 'string',
            'sanitize' => 'esc_url_raw',
@@ -80,12 +85,17 @@
            'sanitize'  => 'sanitizeUser',
         'default'   => '',
        ],
        'post'  => [
            'type'      => 'string',
            'sanitize'  =>   'sanitizePost',
         'default'   => '',
        ],
        'repeater' => [
            'type' => 'object',
            'sanitize' => 'sanitizeRepeater',
         'default'   => [],
        ],
      'tag_list' => [
      'taglist' => [
         'type' => 'object',
         'sanitize' => 'sanitizeTagList',
         'default' => []
@@ -101,7 +111,12 @@
         'default'   => [
            'address' => '',
            'lat' => 0,
            'lng' => 0
            'lng' => 0,
            'street' => '',
            'city' => '',
            'province' => '',
            'postal_code'=> '',
            'country' => '',
         ]
        ],
        'date' => [
@@ -128,7 +143,12 @@
            'type'  => 'string',
            'sanitize'  => 'sanitize_text_field',
         'default'   => '',
        ]
        ],
      'selector' => [
         'type'   => 'string',
         'sanitize'  => 'sanitizeSelector',
         'default'   => '',
      ]
    ];
   public static function getType(string $field_name):array
   {
@@ -149,4 +169,8 @@
    {
        static::$type_map[$type] = $config;
    }
   public static function getTypes():array
   {
      return static::$type_map;
   }
}