Hide wcfm_dashboard_wcfm_product_stats on dashoboard

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WCFM Hide wcfm_dashboard_wcfm_product_stats on dashoboard

Viewing 4 reply threads
  • Author
    Posts
    • #133605
      lab4brains
      Participant

      Is there a filter to be able to hide this component (.wcfm_dashboard_wcfm_product_stats) from the dashboard?

    • #135342

      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.

    • #135722
      SebastianFloKa
      Participant

      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.

    • #135937

      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.

    • #135973
      SebastianFloKa
      Participant

      That was fast and works perfect. Thank you very much!!

Viewing 4 reply threads
  • You must be logged in to reply to this topic.