diff --git a/php/classes/rest/class-episodes-controller.php b/php/classes/rest/class-episodes-controller.php index a1db63e6..2b62d108 100644 --- a/php/classes/rest/class-episodes-controller.php +++ b/php/classes/rest/class-episodes-controller.php @@ -530,6 +530,16 @@ public function get_collection_params() { $params['context']['default'] = 'view'; + $params['per_page'] = array ( + 'description' => 'Maximum number of items to be returned in result set.', + 'type' => 'integer', + 'default' => 10, + 'minimum' => 1, + 'maximum' => 500, + 'sanitize_callback' => 'absint', + 'validate_callback' => 'rest_validate_request_arg', + ); + $params['after'] = array( 'description' => __( 'Limit response to resources published after a given ISO8601 compliant date.' ), 'type' => 'string', diff --git a/src/components/EditCastosHTMLPlayer.js b/src/components/EditCastosHTMLPlayer.js index 52f60259..a3a4ad29 100644 --- a/src/components/EditCastosHTMLPlayer.js +++ b/src/components/EditCastosHTMLPlayer.js @@ -27,7 +27,7 @@ class EditCastosHTMLPlayer extends Component { componentDidMount() { this._isMounted = true; - let fetchPost = 'ssp/v1/episodes?per_page=100&get_additional_options=true'; + let fetchPost = 'ssp/v1/episodes?per_page=500&get_additional_options=true'; apiFetch({path: fetchPost}).then(posts => { let episodes = [];