WP_Async_Request::__construct
Initiate new async request
Метод класса: WP_Async_Request{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$WP_Async_Request = new WP_Async_Request(); $WP_Async_Request->__construct();
Код WP_Async_Request::__construct() WP Async Request:: construct WC 10.4.3
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' ) );
}