LLMS_AJAX::__construct()
Hook into ajax events.
Return Return
(void)
Source Source
File: includes/class.llms.ajax.php
*/ public function __construct() { $ajax_events = array( 'query_quiz_questions' => false, 'favorite_object' => 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();
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
6.0.0 | Removed loading of class files that don't instantiate their class in favor of autoloading. |
5.9.0 | Move check_voucher_duplicate() to LLMS_AJAX_Handler . |
4.0.0 | Stop registering previously deprecated actions. |
3.16.0 | Unknown. |
1.0.0 | Introduced. |