Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Add new roles to customer double opt in
<?php
add_filter( 'woocommerce_gzd_customer_double_opt_in_supported_user_roles', 'my_child_add_double_opt_in_role', 10, 1 );
function my_child_add_double_opt_in_role( $roles ) {
$roles[] = 'subscriber';
return $roles;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment