Last active
August 29, 2015 14:19
-
-
Save bryceadams/a3e02471128c4b1cf36f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'wcdrip_custom_fields', 'drip_add_first_last_fields', 10, 5 ); | |
function drip_add_first_last_fields( $filters, $email, $lifetime_value, $products, $order ) { | |
unset( $filters['name'] ); | |
$filters['first_name'] = $order->billing_first_name; | |
$filters['last_name'] = $order->billing_last_name; | |
return $filters; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment