/** * Read XML function * * @return void */ public function moove_read_xml() { $args = array('data' => esc_sql(wp_unslash($_POST['data'])), 'xmlaction' => sanitize_text_field(wp_unslash($_POST['xmlaction'])), 'type' => sanitize_text_field(wp_unslash($_POST['type'])), 'node' => sanitize_text_field(wp_unslash($_POST['node']))); $move_importer = new Moove_Importer_Controller(); $read_xml = $move_importer->moove_read_xml($args); echo $read_xml; die; }