LLMS_AJAX::__construct()
Hook into ajax events.
Return Return
(void)
Source Source
File: includes/class.llms.ajax.php
public function __construct() {
$ajax_events = array(
'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();
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 |
|---|---|
| 7.5.0 | Added favorite_object ajax event. |
| 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. |