WP_Async_Request::maybe_handle()

Maybe handle


Description Description

Check for correct nonce and pass to handler.


Top ↑

Source Source

File: vendor/deliciousbrains/wp-background-processing/classes/wp-async-request.php

162
163
164
165
166
167
168
169
170
171
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();
}

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.