AnsPress::ajax_hooks()
Description #
Register ajax hooks
Source #
File: anspress-question-answer.php
365 366 367 368 369 370 371 372 373 374 | public function ajax_hooks() { // Load ajax hooks only if DOING_AJAX defined. if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) { require_once ANSPRESS_DIR . 'admin/ajax.php' ; require_once ANSPRESS_DIR . 'includes/ajax-hooks.php' ; AnsPress_Ajax::init(); AnsPress_Admin_Ajax::init(); } } |
Expand full source code Collapse full source code View on GitHub: anspress-question-answer.php:365
Add your comment