wpsc_shipwire_send_tracking_email

Located in: shipwire_functions.php

Functions that call this hook: sync_products()

Arguments Accepted: true, $order_id, $tracking_number

Version Introduced: 3.8.9

Description: Whether to send the tracking email.

Code in context:

[php highlight=”623″ firstline=”607″]

foreach ( $tracking as $order_id => $tracking_number ) {

$tracking_numbers = array_keys( $tracking_number );

$update = (int) $wpdb->update(

WPSC_TABLE_PURCHASE_LOGS,

array(

‘track_id’ => $tracking_numbers[0]

),

array(

‘id’ => $order_id

),

‘%s’,

‘%d’

);

$tracking_updates += $update;

if ( apply_filters( ‘wpsc_shipwire_send_tracking_email’, true, $order_id, $tracking_number ) && $update )

self::_send_tracking_email( $order_id, $tracking_number );

}

[/php]