LLMS_REST_Students_Controller::object_completely_inserted( LLMS_Student $student, WP_REST_Request $request, array $schema, bool $creating )

Called right after a student is completely inserted (created/updated).


Parameters Parameters

$student

(LLMS_Student) (Required) Inserted or updated llms student.

$request

(WP_REST_Request) (Required) Request object.

$schema

(array) (Required) The item schema.

$creating

(bool) (Required) True when creating a post, false when updating.


Top ↑

Source Source

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

			 *
			 * @param LLMS_Student    $student Inserted or updated llms student.
			 * @param WP_REST_Request $request Request object.
			 * @param array           $schema  The item schema.
			 */
			do_action( 'llms_rest_student_registered', $this->get_object_id( $student ), $request, $schema );
		}
	}

	/**
	 * Prepare links for the request.
	 *
	 * @since 1.0.0-beta.1
	 * @since 1.0.0-beta.14 Added `$request` parameter.
	 *
	 * @param obj             $object  Item object.
	 * @param WP_REST_Request $request Request object.


Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0-beta.12 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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