wpsc_update_purchase_log_status

Located in: purchase-log.class.php

Functions that call this hook: WPSC_Purchase_Log::save()

Arguments Accepted: $log_id, $current_status, $previous_status, $purchase_log_object

Version Introduced: 3.8.9

Description: This action is triggered after a purchase log’s status is updated.

Code in context:

[php firstline=”538″ highlight=”545″]

if ( $this->is_status_changed ) {

if ( $this->is_transaction_completed() )

$this->update_downloadable_status();

$current_status = $this->get( ‘processed’ );

$previous_status = $this->previous_status;

$this->previous_status = $current_status;

$this->is_status_changed = false;

do_action( ‘wpsc_update_purchase_log_status’, $this->get( ‘id’ ), $current_status, $previous_status, $this );

}

[/php]