LLMS_REST_Controller::delete_item( WP_REST_Request $request )

Delete the item.


Parameters Parameters

$request

(WP_REST_Request) (Required) Request object.


Top ↑

Return Return

(WP_REST_Response|WP_Error)


Top ↑

Source Source

File: libraries/lifterlms-rest/includes/abstracts/class-llms-rest-controller.php

161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
* @param WP_REST_Request $request  Request object.
 * @param array           $schema   The item schema.
 * @param bool            $creating True when creating a post, false when updating.
 */
protected function object_completely_inserted( $object, $request, $schema, $creating ) {
 
    $type = $this->get_object_type();
    /**
     * Fires after a single llms resource is completely 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.
     */
    do_action( "llms_rest_after_insert_{$type}", $object, $request, $schema, $creating );

Top ↑

Changelog Changelog

Changelog
Version Description
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.