Support » Plugin: Germanized for WooCommerce » DOI role managing

  • Resolved juergenwp34

    (@juergenwp34)


    Hey,

    thank you for your plugin! I have one question: I’m working for a german client. We are using your Double Opt In Feature and want to enable the DOI for other user roles too? Is there any way to achieve that?

    Thanks in advance

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author vendidero

    (@vendidero)

    Hi!

    that may be achieved through our filter woocommerce_gzd_customer_double_opt_in_supported_user_roles

    You may add your roles through your functions.php

    add_filter( 'woocommerce_gzd_customer_double_opt_in_supported_user_roles', 'my_child_adjust_doi_roles', 10, 1 );
    
    function my_child_adjust_doi_roles( $roles ) {
        $roles[] = 'my_role';
        return $roles;
    }

    Cheers

    Thank you! Perfect, that is what I was looking for!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘DOI role managing’ is closed to new replies.