LLMS_REST_Posts_Controller::get_get_item_params()
Retrieves the query params for retrieving a single resource.
Return Return
(array)
Source Source
File: libraries/lifterlms-rest/includes/abstracts/class-llms-rest-posts-controller.php
public function get_get_item_params() { $params = parent::get_get_item_params(); $schema = $this->get_item_schema(); if ( isset( $schema['properties']['password'] ) ) { $params['password'] = array( 'description' => __( 'Post password. Required if the post is password protected.', 'lifterlms' ), 'type' => 'string', ); } return $params; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0-beta.1 | Introduced. |