_registry->get( 'model.api.api-ticketing' ); $post_id = $_POST['ai1ec_event_id']; $modal = $api->get_tax_options_modal( $post_id ); $output = array( 'error' => $modal->error, 'message' => $modal->data ); $json_strategy = $this->_registry->get( 'http.response.render.strategy.json' ); $json_strategy->render( array( 'data' => $output ) ); } }