get_id(); $appmaker_user_id=get_current_user_id(); $tabs = apply_filters( 'woocommerce_product_tabs', array() ); $tabs = apply_filters( 'appmaker_wc_product_tabs', $tabs); $in_stock = $product->is_in_stock(); if(!isset( $tabs['notify']) && !$in_stock){ $tabs['notify'] = ''; } foreach ( $tabs as $key => $tab ) { $tab_type = APPMAKER_WC::$api->get_settings('product_tab_display_type_' . $key, 'DEFAULT'); $tab_type='OPEN_IN_WEB_VIEW'; if ( $key == 'notify' && $tab_type=='OPEN_IN_WEB_VIEW'){ ob_start(); include_once('class-appmaker-wc-waitlist-output.php'); $content = ob_get_clean(); $return['notify'] = array( 'type' => 'menu', 'expandable' => isset( $tab['expandable'] ) ? $tab['expandable'] && true : true, 'expanded' => isset( $tab['expanded'] ) ? $tab['expanded'] && true : false, 'title' =>__($xoo_wl_gl_bntxt_value,'waitlist-woocommerce'), 'content' => $content, 'action' => array( 'type' => 'OPEN_IN_WEB_VIEW', 'params' => array( 'html' => $content, 'title' => __($xoo_wl_gl_bntxt_value,'waitlist-woocommerce'), ), ), ); } } return $return; } } new APPMAKER_WC_Waitlist();