wcfm-santa

Celebrate Poila Baisakh with upto 25% off - A Fresh Start, A Great Deal!

Claim Offer
01Day 15Hrs 38Min 07Sec
wcfm-santa

Want TO REMOVE/override AN ACTION

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 WC Marketplace Want TO REMOVE/override AN ACTION

Viewing 1 reply thread
  • Author
    Posts
    • #136533
      rahul647331
      Participant

      Hello team,

      Great Plugin. I just want to ask how can i override or remove this action in class WCFMmp_Vendor. I tried with class name but no luck.
      add_action( ‘woocommerce_order_details_after_order_table’, array( &$this, ‘wcfmmp_vendor_details_in_order’ ), 20, 4 );

      Please advice.

    • #136753

      Hello,

      Try this –

      add_action('init',function(){
      	global $WCFM, $WCFMmp;
      	remove_action('woocommerce_order_details_after_order_table', array( $WCFMmp->wcfmmp_vendor, 'wcfmmp_vendor_details_in_order' ),20,4 );
      });

      But if you want to remove the policy from order, then you can add below code for this –
      add_filter('wcfm_is_allow_policy_under_order_details', '__return_false');

      Thanks.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.