Skip to content

Instantly share code, notes, and snippets.

@woogists
Created March 9, 2018 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save woogists/0773a0e8d1f72294c43acfba255630cd to your computer and use it in GitHub Desktop.
Save woogists/0773a0e8d1f72294c43acfba255630cd to your computer and use it in GitHub Desktop.
[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