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', @@ -149,4 +154,8 @@ { static::$type_map[$type] = $config; } public static function getTypes():array { return static::$type_map; } }