LLMS_Student::get_notification_subscription( string $type, string $trigger, string $default = 'no' )

Retrieve a user’s notification subscription preferences for a given type & trigger

Parameters Parameters


(string) (Required) notification type: email, basic, etc...


(string) (Required) notification trigger: eg purchase_receipt, lesson_complete, etc...


(string) (Optional) value to return if no setting is saved in the db

Default value: 'no'

Top ↑

Return Return

(string) yes or no

Top ↑

Source Source

File: includes/models/model.llms.student.php

		$grade = llms()->grades()->get_grade( $object_id, $this, $use_cache );
		if ( is_null( $grade ) ) {
			$grade = _x( 'N/A', 'Grade to display when no quizzes taken or available', 'lifterlms' );
		return apply_filters( 'llms_student_get_grade', $grade, $this, $object_id, get_post_type( $object_id ) );

	 * Retrieve IDs of user's memberships based on supplied criteria
	 * @param    array $args   see `get_enrollments`
	 * @return   array
	 * @since    3.15.0
	 * @version  3.15.0

Top ↑

Changelog Changelog

Version Description
3.10.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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