wpsc_purchase_log_save

Located in: purchase-log.class.php

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

Arguments Accepted: $purchase_log_object

Version Introduced: 3.8.9

Description: This action is triggered after a purchase log is saved to the database (either updated or inserted).

Code in context:

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

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 );

}

do_action( ‘wpsc_purchase_log_save’, $this );

return $result;

[/php]