Jake Vanderwerf
yesterday f4be611c51473359e6d41780f0313c446079e9d3
inc/meta/MetaTypeManager.php
@@ -50,6 +50,11 @@
            'sanitize' => 'sanitize_email',
         'default'   => '',
        ],
        'phone' => [
            'type' => 'string',
            'sanitize' => 'sanitizeTelephone',
         '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' => []
@@ -128,7 +138,12 @@
            'type'  => 'string',
            'sanitize'  => 'sanitize_text_field',
         'default'   => '',
        ]
        ],
      'selector' => [
         'type'   => 'string',
         'sanitize'  => 'sanitizeSelector',
         'default'   => '',
      ]
    ];
   public static function getType(string $field_name):array
   {
@@ -149,4 +164,8 @@
    {
        static::$type_map[$type] = $config;
    }
   public static function getTypes():array
   {
      return static::$type_map;
   }
}