Frontend Manager - Unable to Add/Edit product

If you are unable to Add/Edit product from Front end Manager and your site enters an infinite loop, you can use this code to resolve it. Put it in the functions.php of your theme.

 

add_action( 'init', 'yith_wc_tabmanager_premium_init', 99 );
if( ! function_exists( 'yith_wc_tabmanager_premium_init' ) ){


function yith_wc_tabmanager_premium_init() {
if( !is_admin() && !is_ajax() ) {
$YWTM_Product_Tab = false;
if ( function_exists( 'YWTM_Product_Tab' ) ) {
$YWTM_Product_Tab = YWTM_Product_Tab();
if ( ! empty( $YWTM_Product_Tab ) ) {
remove_filter( 'woocommerce_product_write_panel_tabs', array(
$YWTM_Product_Tab,
'add_woocommerce_tabs_edit'
), 99 );
remove_filter( 'woocommerce_product_write_panel_tabs', array(
$YWTM_Product_Tab,
'add_custom_tab_product_edit'
), 98 );
}
}
}
}
}

or download the attached plugin.
Was this article helpful?
0 out of 1 found this helpful

Back to Help Center

Powered by Zendesk