wpsc_purchase_log_update_data

Located in: purchase-log.class.php

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

Arguments Accepted: $data

Version Introduced: 3.8.9

Description: Filter purchase log’s values before they are updated into the database.

Code in context:

[php highlight=”514″ firstline=”509″]

if ( $where_col ) {

$where_val = $this->args[‘value’];

$where_format = self::get_column_format( $where_col );

do_action( ‘wpsc_purchase_log_pre_update’, $this );

self::delete_cache( $where_val, $where_col );

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

$format = $this->get_data_format( $data );

$result = $wpdb->update( WPSC_TABLE_PURCHASE_LOGS, $data, array( $where_col => $where_val ), $format, array( $where_format ) );

do_action( ‘wpsc_purchase_log_update’, $this );

} else {

[/php]