classes/class-lsx-wetu-importer-accommodation.php 1 location
|
@@ 442-446 (lines=5) @@
|
| 439 |
|
if ( isset( $_POST['action'] ) && 'lsx_import_items' === $_POST['action'] && isset( $_POST['type'] ) && 'accommodation' === $_POST['type'] && isset( $_POST['wetu_id'] ) ) { |
| 440 |
|
|
| 441 |
|
$wetu_id = sanitize_text_field( $_POST['wetu_id'] ); |
| 442 |
|
if ( isset( $_POST['post_id'] ) ) { |
| 443 |
|
$post_id = sanitize_text_field( $_POST['post_id'] ); |
| 444 |
|
} else { |
| 445 |
|
$post_id = 0; |
| 446 |
|
} |
| 447 |
|
|
| 448 |
|
if ( isset( $_POST['team_members'] ) ) { |
| 449 |
|
$team_members = array_map( 'sanitize_text_field', wp_unslash( $_POST['team_members'] ) ); |
classes/class-lsx-wetu-importer-tours.php 1 location
|
@@ 440-444 (lines=5) @@
|
| 437 |
|
if ( isset( $_POST['action'] ) && 'lsx_import_items' === $_POST['action'] && isset( $_POST['type'] ) && $_POST['type'] === $this->tab_slug && isset( $_POST['wetu_id'] ) ) { |
| 438 |
|
|
| 439 |
|
$wetu_id = sanitize_text_field( $_POST['wetu_id'] ); |
| 440 |
|
if ( isset( $_POST['post_id'] ) ) { |
| 441 |
|
$post_id = sanitize_text_field( $_POST['post_id'] ); |
| 442 |
|
} else { |
| 443 |
|
$post_id = 0; |
| 444 |
|
} |
| 445 |
|
|
| 446 |
|
delete_option( 'lsx_wetu_importer_tour_settings' ); |
| 447 |
|
|