LLMS_REST_Posts_Controller::get_object( int $id )
Get object.
Parameters Parameters
- $id
-
(int) (Required) Object ID.
Return Return
(LLMS_Course|WP_Error)
Source Source
File: libraries/lifterlms-rest/includes/abstracts/class-llms-rest-posts-controller.php
/** * Add custom fields registered via `register_meta`. * * @since 1.0.0-beta.27 * * @param array $schema The resource item schema. * @return array */ protected function add_meta_fields_schema( $schema ) { return post_type_supports( $this->post_type, 'custom-fields' ) ? parent::add_meta_fields_schema( $schema ) : $schema; } /** * Get object. *
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0-beta.9 | Introduced. |