wpsc_shipwire_show_affiliate

Located in: shipwire_functions.php

Functions that call this hook: get_order_xml()

Arguments Accepted: false

Version Introduced: 3.8.9

Description: Whether to send referring affiliate to Shipwire.

Code in context:

[php highlight=”155″ firstline=”149″]

$xml = ‘<?xml version="1.0" encoding="utf-8"?>’;

$xml .= ‘<OrderList>’;

$xml .= ‘<EmailAddress>’ . self::$email . ‘</EmailAddress>’;

$xml .= ‘<Password>’ . self::$passwd . ‘</Password>’;

$xml .= ‘<Server>’ . self::$server . ‘</Server>’;

$referrer = apply_filters( ‘wpsc_shipwire_show_affiliate’, false );

if ( $referrer )

$xml .= ‘<Referer>’ . $referrer . ‘</Referer>’;

}

[/php]