wpsc_purchase_log_pre_update

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 updated.

Code in context:

[php firstline=”510″ highlight=”512″]

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

[/php]