classes/class-lsx-wetu-importer-accommodation.php 1 location
|
@@ 419-429 (lines=11) @@
|
| 416 |
|
/** |
| 417 |
|
* Saves the queue to the option. |
| 418 |
|
*/ |
| 419 |
|
public function remove_from_queue( $id ) { |
| 420 |
|
if ( ! empty( $this->queued_imports ) ) { |
| 421 |
|
$key = array_search( $id, $this->queued_imports ); |
| 422 |
|
if ( false !== $key ) { |
| 423 |
|
unset( $this->queued_imports[ $key ] ); |
| 424 |
|
|
| 425 |
|
delete_option( 'lsx_wetu_importer_que' ); |
| 426 |
|
update_option( 'lsx_wetu_importer_que', $this->queued_imports ); |
| 427 |
|
} |
| 428 |
|
} |
| 429 |
|
} |
| 430 |
|
|
| 431 |
|
/** |
| 432 |
|
* Connect to wetu |
classes/class-lsx-wetu-importer-destination.php 1 location
|
@@ 530-540 (lines=11) @@
|
| 527 |
|
/** |
| 528 |
|
* Saves the queue to the option. |
| 529 |
|
*/ |
| 530 |
|
public function remove_from_queue( $id ) { |
| 531 |
|
if ( ! empty( $this->queued_imports ) ) { |
| 532 |
|
$key = array_search( $id, $this->queued_imports ); |
| 533 |
|
if ( false !== $key ) { |
| 534 |
|
unset( $this->queued_imports[ $key ] ); |
| 535 |
|
|
| 536 |
|
delete_option( 'lsx_wetu_importer_que' ); |
| 537 |
|
update_option( 'lsx_wetu_importer_que', $this->queued_imports ); |
| 538 |
|
} |
| 539 |
|
} |
| 540 |
|
} |
| 541 |
|
|
| 542 |
|
/** |
| 543 |
|
* Connect to wetu |