classes/class-wetu-importer-accommodation.php 1 location
|
@@ 459-465 (lines=7) @@
|
| 456 |
|
delete_option( 'wetu_importer_accommodation_settings' ); |
| 457 |
|
|
| 458 |
|
// @codingStandardsIgnoreLine |
| 459 |
|
if ( isset( $_POST['content'] ) && is_array( $_POST['content'] ) && ! empty( $_POST['content'] ) ) { |
| 460 |
|
// @codingStandardsIgnoreLine |
| 461 |
|
$content = $_POST['content']; |
| 462 |
|
add_option( 'wetu_importer_accommodation_settings',$content ); |
| 463 |
|
} else { |
| 464 |
|
$content = false; |
| 465 |
|
} |
| 466 |
|
|
| 467 |
|
$jdata = file_get_contents( $this->url . '/Get?' . $this->url_qs . '&ids=' . $wetu_id ); |
| 468 |
|
|
classes/class-wetu-importer-destination.php 1 location
|
@@ 476-481 (lines=6) @@
|
| 473 |
|
delete_option( 'wetu_importer_destination_settings' ); |
| 474 |
|
|
| 475 |
|
// @codingStandardsIgnoreLine |
| 476 |
|
if ( isset( $_POST['content'] ) && is_array( $_POST['content'] ) && ! empty( $_POST['content'] ) ) { |
| 477 |
|
// @codingStandardsIgnoreLine |
| 478 |
|
$content = $_POST['content']; |
| 479 |
|
add_option( 'wetu_importer_destination_settings', $content ); |
| 480 |
|
} else { |
| 481 |
|
$content = false; |
| 482 |
|
} |
| 483 |
|
|
| 484 |
|
$jdata = file_get_contents( $this->url . '/Get?' . $this->url_qs . '&ids=' . $wetu_id ); |
classes/class-wetu-importer-tours.php 1 location
|
@@ 528-533 (lines=6) @@
|
| 525 |
|
delete_option( 'wetu_importer_tour_settings' ); |
| 526 |
|
|
| 527 |
|
// @codingStandardsIgnoreLine |
| 528 |
|
if ( isset( $_POST['content'] ) && is_array( $_POST['content'] ) && ! empty( $_POST['content'] ) ) { |
| 529 |
|
// @codingStandardsIgnoreLine |
| 530 |
|
$content = $_POST['content']; |
| 531 |
|
add_option( 'wetu_importer_tour_settings',$content ); |
| 532 |
|
} else { |
| 533 |
|
$content = false; |
| 534 |
|
} |
| 535 |
|
|
| 536 |
|
$jdata = file_get_contents( 'http://wetu.com/API/Itinerary/V7/Get?id=' . $wetu_id ); |