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.
Contents
Return Return
(void)
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;
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 5.9.0 | Introduced. |