Tag: rest api

WordPress REST API schema property format: email

Problem: ¬†When setting a property type to ’email’ like so: $schema = array( ‘$schema’ => ‘http://json-schema.org/schema#’, ‘title’ => ‘user’, ‘type’ => ‘object’, ‘properties’ => array( ’email’ => array( ‘description’ => __( ‘The optional email address for the something.’ ), ‘type’

Posted in Coding Tagged with: ,