wcfm-santa

A deal you can't resist! Get upto 35% Off on this entire cyber week.

CLAIM OFFER
02Day 13Hr 20Min 43Sec
wcfm-santa

I need to remove 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!

Viewing 1 reply thread
  • Author
    Posts
    • #100595
      Zeljo
      Participant

      Hi,

      I need to remove an action – it’s this one:

      add_action( ‘end_wcfm_products_manage’, array( &$this, ‘wcb_wcfm_products_manage_form_load_views’ ), 20 );

      But, it does not work with the standard remove_action, obviously because it’s inside a class. How can I remove this hook?

    • #101106
      Sushobhan
      Keymaster

      Use following snippet-

      global $WCFM;
      remove_action( 'end_wcfm_products_manage', array( $WCFM->wcfm_wcbooking, 'wcb_wcfm_products_manage_form_load_views' ), 20 );
Viewing 1 reply thread
  • You must be logged in to reply to this topic.