Core class customization
-
Hi, i am trying to customize the vendor options.
I found the hooks i need to change here:// Vendor Details Page – Store Setting
add_action( ‘begin_wcfm_vendors_new_form’, array( &$this, ‘wcfmmp_vendor_manage_marketplace_setting’ ) );
add_action( ‘end_wcfm_vendors_manage_form’, array( &$this, ‘wcfmmp_vendor_manage_marketplace_setting’ ) );but when i try to remove_action from my child theme “functions.php” nothing happens.
I tried using the global $WFCFMmp class instance instead the &$this since the WCFMmp_Vendor is instanced inside its constructor but i cannot reach any result.
I even tried to change the priority but nothing happens.I tried even something like
add_action('woocommerce_init', 'remove_things'); function remove_things(){ global $wcfmmp_vendor; remove_action( 'begin_wcfm_vendors_new_form', array( $wcfmmp_vendor, 'wcfmmp_vendor_manage_marketplace_setting' ),15 ); remove_action( 'end_wcfm_vendors_manage_form', array( wcfmmp_vendor, 'wcfmmp_vendor_manage_marketplace_setting' ),15 ); }
Can you point me to the right direction?
I need to customize only “wcfmmp_vendor_manage_marketplace_setting”.
Many thanks.
- The topic ‘Core class customization’ is closed to new replies.