LLMS_AJAX::register()
Register the AJAX handler class with all the appropriate WordPress hooks.
Return Return
(void)
Source Source
File: includes/class.llms.ajax.php
* @return void
*/
public function register() {
$handler = 'LLMS_AJAX';
$methods = get_class_methods( 'LLMS_AJAX_Handler' );
foreach ( $methods as $method ) {
add_action( 'wp_ajax_' . $method, array( $handler, 'handle' ) );
add_action( 'wp_ajax_nopriv_' . $method, array( $handler, 'handle' ) );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 6.0.0 | Removed the wp_enqueue_scripts action callback to the deprecated LLMS_AJAX::register_script() method. |
| 4.4.0 | Introduced. |