Search for: WCMp Advanced Frontend Manager Tagged: Vendor registration Resolved Viewing 7 reply threads Author Posts February 11, 2021 at 4:26 AM #115486 frederickabdelmassihParticipant Hello, how can i let the vendors choose if they want their email to appear on their store profile? some vendors do not want their email to be visible to clients February 11, 2021 at 5:58 PM #115504 MVX Support NinjaKeymaster Hi, Please add this code in the function.php of the current active theme : add_filter('wcmp_vendor_store_header_hide_store_email', 'wcmp_remove_vendor_email_from_store',10, 2); function wcmp_remove_vendor_email_from_store( $return, $vendor_id){ $vendor_array = array(2, 3);// Enter vendors id for hide email sapareted by comma. if(in_array($vendor_id, $vendor_array)){ $return = true; } return $return; } Copy Regards, February 11, 2021 at 6:27 PM #115506 frederickabdelmassihParticipant Thank you! will this allow the vendor to select whether or not he want to show his email on his page banner? February 12, 2021 at 5:52 PM #115562 MVX Support NinjaKeymaster Hi, As per your requirement you have to add custom code for your end using the above filter. Let me know if you need any hook and filter for vendor dashboard set field for this functionality. Regards, February 14, 2021 at 11:07 PM #115672 frederickabdelmassihParticipant A set field would be amazing, Is it possible to have a checkbox near the email of the vendor? [] show email on store profile Thank you for your continuous support! February 15, 2021 at 5:33 PM #115723 MVX Support NinjaKeymaster Hi, you can set a checkbox under the vendor dashboard >> store settings >> store front using below hook do_action('wcmp_after_shop_front'); Copy and then save this field using below hook do_action('before_wcmp_vendor_dashboard'); Copy then you have to use below filter to hide the email on vendor shop page. wcmp_vendor_store_header_hide_store_email Copy Regards, February 16, 2021 at 9:12 PM #115829 frederickabdelmassihParticipant Thank you! February 17, 2021 at 10:30 AM #115843 MVX Support NinjaKeymaster Thank you for the update. We are closing the ticket now. In case any issue arises kindly raise a new ticket. Author Posts Viewing 7 reply threads The topic ‘Hide vendor’s email’ is closed to new replies.