wpsc_purchase_log_data

Located in: purchase-log.class.php

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

Arguments Accepted: $data

Version Introduced: 3.8.9

Description: Filter purchase log data returned by the database before it is used to update the cache.

Code in context:

[php highlight=”312″ firstline=”310″]

if ( $data = $wpdb->get_row( $sql, ARRAY_A ) ) {

$this->exists = true;

$this->data = apply_filters( ‘wpsc_purchase_log_data’, $data );

$this->cart_contents = $this->get_cart_contents();

$this->set_meta_props();

self::update_cache( $this );

}

[/php]