LLMS_REST_Posts_Controller::update_additional_object_fields( LLMS_Post_Model $object, array $prepared_item, WP_REST_Request $request, array $schema )
Updates a single llms post.
Parameters Parameters
- $object
-
(LLMS_Post_Model) (Required) LMMS_Post_Model instance.
- $prepared_item
-
(array) (Required) Array.
- $request
-
(WP_REST_Request) (Required) Full details about the request.
- $schema
-
(array) (Required) The item schema.
Return Return
(bool|WP_Error) True on success or false if nothing to update, WP_Error object if something went wrong during the update.
Source Source
File: libraries/lifterlms-rest/includes/abstracts/class-llms-rest-posts-controller.php
* @param LLMS_Post $object Inserted or updated llms object. * @param WP_REST_Request $request Request object. * @param array $schema The item schema.
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0-beta.7 | return description updated. |
1.0.0-beta.1 | Introduced. |