woocommerce_gzd_template_checkout_remove_cart_name_filter

Removes the cart item name filter (using checkout quantity html) if within checkout.

Description

woocommerce_gzd_template_checkout_remove_cart_name_filter(); 

Usage

  1. if ( !function_exists( 'woocommerce_gzd_template_checkout_remove_cart_name_filter' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-germanized/includes/wc-gzd-template-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = woocommerce_gzd_template_checkout_remove_cart_name_filter(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/wc-gzd-template-functions.php  
  1. function woocommerce_gzd_template_checkout_remove_cart_name_filter() { 
  2. remove_filter( 'woocommerce_cart_item_name', 'wc_gzd_cart_product_units', wc_gzd_get_hook_priority( 'cart_product_units' ), 2 ); 
  3. remove_filter( 'woocommerce_cart_item_name', 'wc_gzd_cart_product_delivery_time', wc_gzd_get_hook_priority( 'cart_product_delivery_time' ), 2 ); 
  4. remove_filter( 'woocommerce_cart_item_name', 'wc_gzd_cart_product_item_desc', wc_gzd_get_hook_priority( 'cart_product_item_desc' ), 2 );