Tweak REST API context for secondary post types
This commit is contained in:
@@ -142,7 +142,7 @@ class SportsPress_Calendars {
|
|||||||
'schema' => array(
|
'schema' => array(
|
||||||
'description' => __( 'Layout', 'sportspress' ),
|
'description' => __( 'Layout', 'sportspress' ),
|
||||||
'type' => 'string',
|
'type' => 'string',
|
||||||
'context' => array( 'view', 'edit', 'embed' ),
|
'context' => array( 'view', 'edit' ),
|
||||||
'arg_options' => array(
|
'arg_options' => array(
|
||||||
'sanitize_callback' => 'rest_sanitize_request_arg',
|
'sanitize_callback' => 'rest_sanitize_request_arg',
|
||||||
),
|
),
|
||||||
@@ -157,7 +157,7 @@ class SportsPress_Calendars {
|
|||||||
'schema' => array(
|
'schema' => array(
|
||||||
'description' => __( 'Events', 'sportspress' ),
|
'description' => __( 'Events', 'sportspress' ),
|
||||||
'type' => 'array',
|
'type' => 'array',
|
||||||
'context' => array( 'view', 'embed' ),
|
'context' => array( 'view' ),
|
||||||
'arg_options' => array(
|
'arg_options' => array(
|
||||||
'sanitize_callback' => 'rest_sanitize_request_arg',
|
'sanitize_callback' => 'rest_sanitize_request_arg',
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ class SportsPress_League_Tables {
|
|||||||
'schema' => array(
|
'schema' => array(
|
||||||
'description' => __( 'League Table', 'sportspress' ),
|
'description' => __( 'League Table', 'sportspress' ),
|
||||||
'type' => 'array',
|
'type' => 'array',
|
||||||
'context' => array( 'view', 'edit', 'embed' ),
|
'context' => array( 'view', 'edit' ),
|
||||||
'arg_options' => array(
|
'arg_options' => array(
|
||||||
'sanitize_callback' => 'rest_sanitize_request_arg',
|
'sanitize_callback' => 'rest_sanitize_request_arg',
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -142,7 +142,7 @@ class SportsPress_Player_Lists {
|
|||||||
'schema' => array(
|
'schema' => array(
|
||||||
'description' => __( 'Layout', 'sportspress' ),
|
'description' => __( 'Layout', 'sportspress' ),
|
||||||
'type' => 'string',
|
'type' => 'string',
|
||||||
'context' => array( 'view', 'edit', 'embed' ),
|
'context' => array( 'view', 'edit' ),
|
||||||
'arg_options' => array(
|
'arg_options' => array(
|
||||||
'sanitize_callback' => 'rest_sanitize_request_arg',
|
'sanitize_callback' => 'rest_sanitize_request_arg',
|
||||||
),
|
),
|
||||||
@@ -158,7 +158,7 @@ class SportsPress_Player_Lists {
|
|||||||
'schema' => array(
|
'schema' => array(
|
||||||
'description' => __( 'Player List', 'sportspress' ),
|
'description' => __( 'Player List', 'sportspress' ),
|
||||||
'type' => 'array',
|
'type' => 'array',
|
||||||
'context' => array( 'view', 'edit', 'embed' ),
|
'context' => array( 'view', 'edit' ),
|
||||||
'arg_options' => array(
|
'arg_options' => array(
|
||||||
'sanitize_callback' => 'rest_sanitize_request_arg',
|
'sanitize_callback' => 'rest_sanitize_request_arg',
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user