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
1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 | /** * 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. |