LLMS_REST_Controller::object_completely_inserted( LLMS_Post $object, WP_REST_Request $request, array $schema, bool $creating )
Called right after a resource is completely inserted (created/updated).
Parameters Parameters
- $object
-
(LLMS_Post) (Required) Inserted or updated object.
- $request
-
(WP_REST_Request) (Required) Request object.
- $schema
-
(array) (Required) The item schema.
- $creating
-
(bool) (Required) True when creating a post, false when updating.
Source Source
File: libraries/lifterlms-rest/includes/abstracts/class-llms-rest-controller.php
* @param bool $creating True when creating a post, false when updating.
*/
protected function object_inserted( $object, $request, $schema, $creating ) {
$type = $this->get_object_type();
/**
* Fires after a single llms resource is created or updated via the REST API.
*
* The dynamic portion of the hook name, `$type`, refers to the object type this controller is responsible for managing.
*
* @since 1.0.0-beta.12
*
* @param object $object Inserted or updated object.
* @param WP_REST_Request $request Request object.
* @param array $schema The item schema.
* @param bool $creating True when creating a post, false when updating.
*/
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 1.0.0-beta.12 | Introduced. |