LLMS_REST_Enrollments_Controller::handle_status_update( LLMS_Student $student, integer $post_id, string $status, string $trigger )

Handles the enrollment status update.


Parameters Parameters

$student

(LLMS_Student) (Required) Student.

$post_id

(integer) (Required) The post id.

$status

(string) (Required) Status.

$trigger

(string) (Required) The enrollment trigger.


Top ↑

Return Return

(boolean)


Top ↑

Source Source

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

		 * Filters the enrollment's links.
		 *
		 * @since 1.0.0-beta.10
		 *
		 * @param array    $links      Links for the given enrollment.
		 * @param stdClass $enrollment Enrollment object.
		 */
		return apply_filters( 'llms_rest_enrollment_links', $links, $enrollment );

	}

	/**
	 * Handles the enrollment status update.
	 *
	 * @since 1.0.0-beta.1
	 * @since 1.0.0-beta.10 Added the `trigger` paramater.


Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0-beta.10 Added the trigger paramater.
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.