LLMS_AJAX::__construct()
Hook into ajax events
Description Description
Source Source
File: includes/class.llms.ajax.php
public function __construct() { $ajax_events = array( 'check_voucher_duplicate' => false, 'query_quiz_questions' => false, // @todo DEPRECATE // @deprecated 3.13.0 'get_achievements' => false, 'get_all_posts' => false, 'get_associated_lessons' => false, 'get_certificates' => false, 'get_courses' => false, 'get_course_tracks' => false, 'get_emails' => false, 'get_enrolled_students' => false, 'get_lesson' => false, 'get_lessons' => false, 'get_lessons_alt' => false, 'get_memberships' => false, 'get_question' => false, 'get_sections' => false, 'get_sections_alt' => false, 'get_students' => false, 'update_syllabus' => false, ); foreach ( $ajax_events as $ajax_event => $nopriv ) { add_action( 'wp_ajax_' . $ajax_event, array( $this, $ajax_event ) ); if ( $nopriv ) { add_action( 'wp_ajax_nopriv_' . $ajax_event, array( $this, $ajax_event ) ); } } self::register(); require_once 'admin/class.llms.admin.builder.php'; add_filter( 'heartbeat_received', array( 'LLMS_Admin_Builder', 'heartbeat_received' ), 10, 2 ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |