WP_Async_Request::__construct()

Initiate new async request


Description


Source

File: classes/library/batch-processing/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' ) );
		}


User Contributed Notes

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