Enable league table data updating via rest api

This commit is contained in:
Brian Miyaji
2016-04-11 19:47:01 +10:00
parent aca031f774
commit a53b0cfa31

View File

@@ -137,7 +137,7 @@ class SportsPress_League_Tables {
'data', 'data',
array( array(
'get_callback' => 'SP_REST_API::get_post_data', 'get_callback' => 'SP_REST_API::get_post_data',
'update_callback' => 'SP_REST_API::update_post_meta', 'update_callback' => 'SP_REST_API::update_post_meta_arrays',
'schema' => array( 'schema' => array(
'description' => __( 'League Table', 'sportspress' ), 'description' => __( 'League Table', 'sportspress' ),
'type' => 'array', 'type' => 'array',