wpsc_purchase_log_before_delete

Located in: purchase-log.class.php

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

Arguments Accepted: $log_id

Version Introduced: 3.8.9

Description: This action is triggered just before a purchase log is deleted.

Code in context:

[php firstline=”170″ highlight=”177″]

public static function delete( $log_id ) {

global $wpdb;

do_action( ‘wpsc_purchase_log_before_delete’, $log_id );

self::delete_cache( $log_id );

$sql = $wpdb->prepare( "DELETE FROM " . WPSC_TABLE_PURCHASE_LOGS . " WHERE id = %d", $log_id );

$wpdb->query( $sql );

do_action( ‘wpsc_purchase_log_delete’, $log_id );

}

[/php]