WP_Async_Request::__construct()

Initiate new async request


Source Source

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

56
57
58
59
60
61
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' ) );
}

Top ↑

User Contributed Notes User Contributed Notes

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