WP_Async_Request::maybe_handle()

Maybe handle

Description

Check for correct nonce and pass to handler.

Source

File: bp-core/libraries/wp-async-request.php

143
144
145
146
147
148
149
150
151
152
public function maybe_handle() {
    // Don't lock up other requests while processing
    session_write_close();
 
    check_ajax_referer( $this->identifier, 'nonce' );
 
    $this->handle();
 
    wp_die();
}

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.