add_action( 'wp', 'hide_wcv_table_for_non_wholesale_customers', 20 ); function hide_wcv_table_for_non_wholesale_customers() { if ( class_exists( '\Barn2\Plugin\WC_Wholesale_Pro\Util' ) && ! \Barn2\Plugin\WC_Wholesale_Pro\Util::is_wholesale_user( wp_get_current_user() ) ) { remove_action( 'woocommerce_before_single_product', array( 'Barn2\Plugin\WC_Bulk_Variations\WC_Bulk_Variations_Products', 'hook_into_summary_actions' ), 1 ); } } add_filter( 'wc_bulk_variations_get_table_output', 'hide_wcv_table_for_logged_out_users', 11 ); function hide_wcv_table_for_logged_out_users( $table_content ) { if ( is_user_logged_in() ) { return $table_content; } return ''; } Bay Abbigliamento – I tuoi negozi di moda! – I tuoi negozi di moda!
BAYABBIGLIAMENTO

GRATIS
VISUALIZZA