case 'page-attributes':
$schema['properties'
]['menu_order'
] = array
( 'description' =>
__( 'The order of the post in relation to other posts.'
),
'type' => 'integer',
'context' => array
( 'view', 'edit'
),
);
break;
case 'post-formats':
// Get the native post formats and remove the array keys.
$formats =
array_values( get_post_format_slugs() );
$schema['properties'
]['format'
] = array
( 'description' =>
__( 'The format for the post.'
),
'type' => 'string',
'enum' =>
$formats,
'context' => array
( 'view', 'edit'
),
);
break;
case 'custom-fields':
$schema['properties'
]['meta'
] =
$this->meta->
get_field_schema();