Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › Remove trash order in vendor dashboard
Tagged: trash order
- This topic has 4 replies, 2 voices, and was last updated 4 years, 7 months ago by khuaneng.khor.
- AuthorPosts
- May 16, 2020 at 9:00 am #131651khuaneng.khorParticipant
Hi WCFM, how to delete trash order in vendor dashboard?
Attachments:
You must be logged in to view attached files. - May 16, 2020 at 12:53 pm #131724Sarmistha ChakrabortyMember
Hello,
add_filter('wcfmmp_is_allow_show_trashed_orders', '__return_true');
Try this code to your child theme’s functions.php
In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/
Thanks.
- May 16, 2020 at 1:21 pm #131735khuaneng.khorParticipant
Hi, thanks for the code. However, it shown error message when put in code snippets. Please refer to the attachment.
Attachments:
You must be logged in to view attached files. - May 16, 2020 at 1:26 pm #131738Sarmistha ChakrabortyMember
Hello,
It seems like the code was not paste properly. It is PHP error. Please provide us site url with admin access(Set as private reply), then we can check your code.
Thanks.
- May 16, 2020 at 1:33 pm #131739khuaneng.khorParticipant
Hi, it is working now. I paste the code not properly.
Thanks for the quick response!
- AuthorPosts
- You must be logged in to reply to this topic.