public function init() { parent::init(); /** * The following settings are copied from worldjournal ajax request */ $this->_requestUrl = $this->_hostname . "/wp-content/themes/wjlife/includes/classified-core.php" . "?regions=" . $this->_currentRegionName . "&variant=" . $this->_wjlang . "&t=" . time(); $this->_optionVaules = ["relation" => "AND", "0" => ["relation" => "AND", "0" => ["key" => "wj_order_id"]]]; $this->_requestHeader = ['HTTP_X-Requested-With' => 'XMLHttpRequest', 'contentType' => 'application/x-www-form-urlencoded;charset=utf-8']; }