Skip to content

Commit

Permalink
Update collections params
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Oct 22, 2021
1 parent e515987 commit 9af8ab4
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -487,11 +487,19 @@ protected function get_available_actions() {
*/
public function get_collection_params() {
return array(
'context' => $this->get_context_param(),
'wp_id' => array(
'context' => $this->get_context_param(),
'wp_id' => array(
'description' => __( 'Limit to the specified post id.', 'gutenberg' ),
'type' => 'integer',
),
'area' => array(
'description' => __( 'Limit to the specified template part area.', 'gutenberg' ),
'type' => 'string',
),
'post_type' => array(
'description' => __( 'Post type to get the templates for.', 'gutenberg' ),
'type' => 'string',
),
);
}

Expand Down

0 comments on commit 9af8ab4

Please sign in to comment.