Created
March 9, 2018 15:08
-
-
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.
This file contains 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_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