WP_Async_Request::__construct()
Initiate new async request
Contents
Source Source
File: vendor/deliciousbrains/wp-background-processing/classes/wp-async-request.php
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' ) ); }
Expand full source code Collapse full source code View on GitHub