You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Determine if the Customer should be opted in to ConvertKit. If the Order already opted in the Customer, this filter will not be fired. If the Order does not permit the Customer be opted in (i.e. they declined at checkout), this filter will not be fired.
Returns the customer's email address for the given WooCommerce Order, immediately before it is sent to ConvertKit when subscribing the Customer to a Form, Tag or Sequence.
Returns the customer's name for the given WooCommerce Order, immediately before it is sent to ConvertKit when subscribing the Customer to a Form, Tag or Sequence, or sending Purchase Data.
Returns the customer's first name for the given WooCommerce Order, immediately before it is sent to ConvertKit when subscribing the Customer to a Form, Tag or Sequence.
Returns the customer's last name for the given WooCommerce Order, immediately before it is sent to ConvertKit when subscribing the Customer to a Form, Tag or Sequence.
Returns an array of ConvertKit Custom Field Key/Value pairs, with values comprising of Order data based, to be sent to ConvertKit when an Order's Customer is subscribed via a Form, Tag or Sequence. Returns false if no Order data should be stored in ConvertKit Custom Fields.
Determine if the Customer should be opted in to ConvertKit. If the Order already opted in the Customer, this filter will not be fired. If the Order does not permit the Customer be opted in (i.e. they declined at checkout), this filter will not be fired.
Parameters
Parameter
Type
Description
$should_opt_in_customer
bool
Should opt in Customer.
$order_id
int
Order ID.
Usage
add_filter( 'convertkit_for_woocommerce_order_should_opt_in_customer', function( $should_opt_in_customer, $order->get_id( ) {
// ... your code here
// Return value
return $should_opt_in_customer;
}, 10, 2 );
Returns the customer's email address for the given WooCommerce Order, immediately before it is sent to ConvertKit when subscribing the Customer to a Form, Tag or Sequence.
Parameters
Parameter
Type
Description
$email
string
Email Address
$order
WC_Order|WC_Order_Refund
Order
Usage
add_filter( 'convertkit_for_woocommerce_email', function( $email, $order ) {
// ... your code here
// Return value
return $email;
}, 10, 2 );
Returns the customer's name for the given WooCommerce Order, immediately before it is sent to ConvertKit when subscribing the Customer to a Form, Tag or Sequence, or sending Purchase Data.
Parameters
Parameter
Type
Description
$name
string
Name
$order
WC_Order|WC_Order_Refund
Order
Usage
add_filter( 'convertkit_for_woocommerce_order_name', function( $name, $order ) {
// ... your code here
// Return value
return $name;
}, 10, 2 );
Returns the customer's first name for the given WooCommerce Order, immediately before it is sent to ConvertKit when subscribing the Customer to a Form, Tag or Sequence.
Parameters
Parameter
Type
Description
$first_name
string
First Name
$order
WC_Order|WC_Order_Refund
Order
Usage
add_filter( 'convertkit_for_woocommerce_first_name', function( $first_name, $order ) {
// ... your code here
// Return value
return $first_name;
}, 10, 2 );
Returns the customer's last name for the given WooCommerce Order, immediately before it is sent to ConvertKit when subscribing the Customer to a Form, Tag or Sequence.
Parameters
Parameter
Type
Description
$last_name
string
Last Name
$order
WC_Order|WC_Order_Refund
Order
Usage
add_filter( 'convertkit_for_woocommerce_last_name', function( $last_name, $order ) {
// ... your code here
// Return value
return $last_name;
}, 10, 2 );
Returns an array of ConvertKit Custom Field Key/Value pairs, with values comprising of Order data based, to be sent to ConvertKit when an Order's Customer is subscribed via a Form, Tag or Sequence. Returns false if no Order data should be stored in ConvertKit Custom Fields.
Parameters
Parameter
Type
Description
$fields
array
Custom Field Key/Value pairs (false | array).
$order
WC_Order|WC_Order_Refund
WooCommerce Order.
Usage
add_filter( 'convertkit_for_woocommerce_custom_field_data', function( $fields, $order ) {
// ... your code here
// Return value
return $fields;
}, 10, 2 );