Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM › Hide wcfm_dashboard_wcfm_product_stats on dashoboard
- This topic has 4 replies, 3 voices, and was last updated 3 years, 10 months ago by SebastianFloKa.
- AuthorPosts
- May 20, 2020 at 10:35 pm #133605lab4brainsParticipant
Is there a filter to be able to hide this component (.wcfm_dashboard_wcfm_product_stats) from the dashboard?
- May 26, 2020 at 2:14 pm #135342Sarmistha ChakrabortyKeymaster
Hello,
add_filter('wcfm_is_allow_dashboard_product_stats', '__return_false');
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 27, 2020 at 3:57 pm #135722SebastianFloKaParticipant
Hi @Sarmistha Chakraborty
As I have a similar question: hope it’s fine to post here:
Is there a possibility to hide the “product policy” field in the product manager and keep the “storewise” policy tab in the vendor store settings section? So that the policy enterned in the setting section should be visible to customers as currently. But vendor should not be able to modify the policy per product (for legal reason) so therefore if the complete policy tab would not show up in product-manager would be great.
Thank you.
- May 27, 2020 at 9:45 pm #135937Sarmistha ChakrabortyKeymaster
Hello,
To remove “Product Policies” tab from the product manager, add this code in your theme’s functions.php –
add_action('wcfm_init','remove_translate_option_for_vendor',100); function remove_translate_option_for_vendor() { if( wcfm_is_vendor() ) { global $WCFM, $WCFMu; remove_action( 'after_wcfm_products_manage_tabs_content', array( $WCFM->wcfm_policy, 'wcfm_policy_product_settings' ), 100, 4 ); } }
Thanks.
- May 28, 2020 at 1:11 am #135973SebastianFloKaParticipant
That was fast and works perfect. Thank you very much!!
- AuthorPosts
- You must be logged in to reply to this topic.