Wordpress Plugin what does it do?

does this code works good? I’m using

wordpress 4.8
Simple Membership Plugin to create 2 levels (free and paid) membership areas
woocommerce to sell 2° level membership access and other stuffs.

when user signup into wordpress (via simple membership for free or wooocommerce for paid user) i need to import their name and email into mautic with some tags