Title: Code snippet does not work
Last modified: December 1, 2023

---

# Code snippet does not work

 *  Resolved [alexliii](https://wordpress.org/support/users/alexliii/)
 * (@alexliii)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/code-snippet-does-not-work-3/)
 * Hello,
 * We are using the following code to remove vendor name in order email:
 *     ```wp-block-code
       remove_action( 'woocommerce_order_item_meta_start', 'dokan_attach_vendor_name', 10 );
       ```
   
 * I just did a sandbox test, and I noted that the vendor Name is still in the order
   email, and please check the screenshot:
 * [https://prnt.sc/9qv3f12Tfmhu](https://prnt.sc/9qv3f12Tfmhu)
 * By the way, we mock vender as supplier.
 * Could you please have a check and update the code snippets?
 * Thanks

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Support [Jahidul Hassan Mojumder](https://wordpress.org/support/users/jahidulhassan/)
 * (@jahidulhassan)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/code-snippet-does-not-work-3/#post-17247305)
 * Hi [@alexliii](https://wordpress.org/support/users/alexliii/),
 * Try `remove_action( 'woocommerce_order_item_meta_start' , 'dokan_attach_vendor_name',
   10, 2 );` this one and I hope it will help. Please share your feedback on how
   did it go.
 * Thanks!
 *  Thread Starter [alexliii](https://wordpress.org/support/users/alexliii/)
 * (@alexliii)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/code-snippet-does-not-work-3/#post-17259194)
 * Hello,
 * I used you code:
 *     ```wp-block-code
       remove_action( 'woocommerce_order_item_meta_start' , 'dokan_attach_vendor_name', 10, 2 );
       ```
   
 * Please check the screenshot:
 * [https://prnt.sc/7VPhQf5zGgu9](https://prnt.sc/7VPhQf5zGgu9)
 * Then, I did a sandbox test, here is the order email, please note that we mock
   vendor as supplier by the local translate:
 * [https://prnt.sc/XUhEXXyQ0Pno](https://prnt.sc/XUhEXXyQ0Pno)
 * Could you please update the code?
 * Thanks
 *  Plugin Support [Jahidul Hassan Mojumder](https://wordpress.org/support/users/jahidulhassan/)
 * (@jahidulhassan)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/code-snippet-does-not-work-3/#post-17265124)
 * Hi [@alexliii](https://wordpress.org/support/users/alexliii/),
 * Please add `remove_filter( 'woocommerce_get_item_data', 'dokan_product_seller_info',
   10, 2 );` this code too.
 *  Thread Starter [alexliii](https://wordpress.org/support/users/alexliii/)
 * (@alexliii)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/code-snippet-does-not-work-3/#post-17265832)
 * Thanks, and I will have a test.
 * By the way, can you please support to remove the vendor name in order email by
   native option in Dokan setting?
 * You know, Dokan is alway updating the version, and that might cause potential
   issue.
 * Thanks
    -  This reply was modified 2 years, 6 months ago by [alexliii](https://wordpress.org/support/users/alexliii/).
 *  [Md Fayeakuzzaman](https://wordpress.org/support/users/fayeakuzzaman/)
 * (@fayeakuzzaman)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/code-snippet-does-not-work-3/#post-17267961)
 * Hello [@alexii](https://wordpress.org/support/users/alexii/),
 * At this moment such feature is unavailable. You can report an enhancement request
   by visiting [this link](https://dokan.co/wordpress/feature-requests/).
 * Thanks!
 *  Thread Starter [alexliii](https://wordpress.org/support/users/alexliii/)
 * (@alexliii)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/code-snippet-does-not-work-3/#post-17268015)
 * Hello,
 * [https://prnt.sc/KYbmO7y-bK_C](https://prnt.sc/KYbmO7y-bK_C)
 * Registration is currently limited to invitations only. Please contact your administrator
   for an invitation.
 * Thanks
 *  Thread Starter [alexliii](https://wordpress.org/support/users/alexliii/)
 * (@alexliii)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/code-snippet-does-not-work-3/#post-17271973)
 * Hello,
 * Do you mean I should try these four code lines? if Yes, it does not work.
 *     ```wp-block-code
       remove_action( 'woocommerce_order_item_meta_start' , 'dokan_attach_vendor_name', 10, 2 );
   
       remove_filter( 'woocommerce_get_item_data', 'dokan_product_seller_info', 10, 2 );
       ```
   
 * or should I try only this line?
 *     ```wp-block-code
       remove_filter( 'woocommerce_get_item_data', 'dokan_product_seller_info', 10, 2 );
       ```
   
 * By the way, should it be run in “Only run in administration area” or ” Only run
   on site front-end”? or “Run snippet everywhere”, please check the screenshot 
   to understand what I mean:
 * [https://prnt.sc/bz_qN-95I7Uw](https://prnt.sc/bz_qN-95I7Uw)
 * Thanks
 *  [Md Fayeakuzzaman](https://wordpress.org/support/users/fayeakuzzaman/)
 * (@fayeakuzzaman)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/code-snippet-does-not-work-3/#post-17274783)
 * Hello [@alexliii](https://wordpress.org/support/users/alexliii/), 
   To remove 
   the vendor name from the order email, please implement the following code snippet.`
   remove_action( 'woocommerce_order_item_meta_start' , 'dokan_attach_vendor_name',
   10, 2 );remove_filter( 'woocommerce_get_item_data', 'dokan_product_seller_info',
   10, 2 );The code snippet should be run everywhere on the site. To get a visual
   idea, please check the reference here: [https://snipboard.io/QCXbvm.jpg](https://snipboard.io/QCXbvm.jpg)
   Thanks!
 *  [Tanvir Hasan](https://wordpress.org/support/users/tanvirh/)
 * (@tanvirh)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/code-snippet-does-not-work-3/#post-17290065)
 * Hi [@alexliii](https://wordpress.org/support/users/alexliii/)
 * As we haven’t heard back from you for a while, we’ll consider this topic resolved.
   If you encounter any further issues, please don’t hesitate to open a new topic.
 * Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Code snippet does not work’ is closed to new replies.

 * ![](https://ps.w.org/dokan-lite/assets/icon-256x256.gif?rev=3239229)
 * [Dokan: AI Powered WooCommerce Multivendor Marketplace Solution – Build Your Own Amazon, eBay, Etsy](https://wordpress.org/plugins/dokan-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/dokan-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/dokan-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/dokan-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dokan-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dokan-lite/reviews/)

 * 9 replies
 * 4 participants
 * Last reply from: [Tanvir Hasan](https://wordpress.org/support/users/tanvirh/)
 * Last activity: [2 years, 5 months ago](https://wordpress.org/support/topic/code-snippet-does-not-work-3/#post-17290065)
 * Status: resolved