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 before a purchase log’s data is saved to the database.

Code in context:

[php firstline=”498″ highlight=”501″]

public function save() {

global $wpdb;

do_action( ‘wpsc_purchase_log_pre_save’, $this );

// $this->args[‘col’] is empty when the record is new and needs to

// be inserted. Otherwise, it means we’re performing an update

$where_col = $this->args[‘col’];

$result = false;