Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
[WooCommerce Drip] This filter allows you to modify parameters used to subscribe a customer to a campaign during registration.
add_filter( 'wcdrip_checkout_subscribe_params', 'drip_make_optin_single' );
add_filter( 'wcdrip_register_subscribe_params', 'drip_make_optin_single' );
function drip_make_optin_single( $params ) {
$params['double_optin'] = false;
return $params;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment