Warning: This method has been deprecated. LLMS_AJAX::check_voucher_duplicate() is deprecated in favor of LLMS_AJAX_HANDLER::check_voucher_duplicate() instead.

LLMS_AJAX::check_voucher_duplicate()

Check if a voucher is a duplicate.


Return Return

(void)


Top ↑

Source Source

File: includes/class.llms.ajax.php

			// You can never mark favorite a non-free lesson of a course you're not enrolled into.
			if ( 'lesson' === $object_type ) {
				$lesson            = llms_get_post( $object_id );
				$can_mark_favorite = $lesson && ( $student->is_enrolled( $object_id ) || $lesson->is_free() );
				if ( ! $can_mark_favorite ) {
					return;

Top ↑

Changelog Changelog

Changelog
Version Description
5.9.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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