Search for: WCMp Mangopay Marketplace Tagged: vendor Resolved Viewing 5 reply threads Author Posts May 9, 2022 at 10:57 PM #137184 Hadhemi RagoubiParticipant Hello , I am trying to customise vendors emails (approved-vendor-account,suspend-vendor-account,rejected-vendor-account).So I want to display the vendor email his user name .I wrote the following codes : <?php printf( esc_html__( “Vendor Username: %s”, ‘dc-woocommerce-multi-vendor’ ), $user_login ); ?> //It succeded to display the username <?php printf( esc_html__( “Vendor email: %s”, ‘dc-woocommerce-multi-vendor’ ), $vendorWCMP->user_data->vendor_email ); ?> //It shows nothing <?php printf( esc_html__( “Vendor email: %s”, ‘dc-woocommerce-multi-vendor’ ), $user_object->user_email ); ?> //It shows nothing Please Help me May 10, 2022 at 7:16 PM #137198 GeekyCoder AbhirupModerator Hi, Kindly let me know how did get those variable – $vendorWCMP and $user_object. Kindly share screenshot where do you want to show which data. so we will help you out. Regards, May 12, 2022 at 8:04 PM #137245 Hadhemi RagoubiParticipant This reply has been marked as private. May 13, 2022 at 7:04 PM #137276 GeekyCoder AbhirupModerator Hi, Using below code you can get the email $user = get_user_by('login', $user_login ); echo $user->data->user_email; Copy Regards, May 13, 2022 at 11:30 PM #137289 Hadhemi RagoubiParticipant Hello, Thank you for your response I tried the solution and it worked wonderfully Thank you so much , Keep up the good work May 14, 2022 at 11:28 AM #137294 NerdySupportExpert MoumitaKeymaster Great to know that @Hadhemi Ragoubi We would love it if you shared your experience by giving us 5/5 review here : https://wordpress.org/support/plugin/dc-woocommerce-multi-vendor/reviews/#new-post Seeing glowing reviews from existing customers makes others more comfortable knowing they’ll get the support they need should an issue with our services arise. Author Posts Viewing 5 reply threads The topic ‘Display vendor email in custom emails’ is closed to new replies.