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


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


(WP_REST_Request) (Required) Request object.


(array) (Required) The item schema.


(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

	protected function object_completely_inserted( $student, $request, $schema, $creating ) {

		parent::object_completely_inserted( $student, $request, $schema, $creating );

		if ( $creating ) {
			 * Fires after a LifterLMS student has been created via the REST API.
			 * @since 1.0.0-beta.12
			 * @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 );

Top ↑

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.