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


(LLMS_Post_Model) (Required) LMMS_Post_Model instance.


(array) (Required) Array.


(WP_REST_Request) (Required) Full details about the request.


(array) (Required) The item schema.

Top ↑

Return Return

(bool|WP_Error) True on success or false if nothing to update, WP_Error object if something went wrong during the update.

Top ↑

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.

Top ↑

Changelog Changelog

Version Description
1.0.0-beta.7 return description updated.
1.0.0-beta.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.