order_details->allowed();
$referrals = apply_filters( 'affwp_odfa_referral_args', affiliate_wp()->referrals->get_referrals(
array(
'affiliate_id' => affwp_get_affiliate_id(), // only get order details from the logged-in affiliate
'number' => -1, // show all
'status' => 'unpaid'
)
), affwp_get_affiliate_id() );
?>
order_details->has( 'order_details' ) || $affwp_odfa->order_details->has( 'customer_details' ) ) : ?>
order_details->has( 'order_details' ) ) : ?>
|
order_details->has( 'customer_details' ) ) : ?>
|
order_details->exists( $referral ) ) {
continue;
}
$order_number = $affwp_odfa->order_details->get( $referral, 'order_number' );
$order_date = $affwp_odfa->order_details->get( $referral, 'order_date' );
$order_total = $affwp_odfa->order_details->get( $referral, 'order_total' );
$referral_amount = $affwp_odfa->order_details->get( $referral, 'referral_amount' );
$customer_name = $affwp_odfa->order_details->get( $referral, 'customer_name' );
$customer_email = $affwp_odfa->order_details->get( $referral, 'customer_email' );
$customer_phone = $affwp_odfa->order_details->get( $referral, 'customer_phone' );
$customer_shipping_address = $affwp_odfa->order_details->get( $referral, 'customer_shipping_address' );
$customer_billing_address = $affwp_odfa->order_details->get( $referral, 'customer_billing_address' );
do_action( 'affwp_odfa_referral_variables', $referral );
?>
order_details->has( 'order_details' ) ) : ?>
|
|
order_details->has( 'customer_details' ) ) : ?>
|