WP_Async_Request::__construct()
Initiate new async request
Description
Source
File: bp-core/libraries/wp-async-request.php
58 59 60 61 62 63 | public function __construct() { $this ->identifier = $this ->prefix . '_' . $this ->action; add_action( 'wp_ajax_' . $this ->identifier, array ( $this , 'maybe_handle' ) ); add_action( 'wp_ajax_nopriv_' . $this ->identifier, array ( $this , 'maybe_handle' ) ); } |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.