woocommerce_product_add_to_cart_description filter-hookWC 1.0

translators: %s: Product title

Usage

add_filter( 'woocommerce_product_add_to_cart_description', 'wp_kama_woocommerce_product_add_to_cart_description_filter', 10, 2 );

/**
 * Function for `woocommerce_product_add_to_cart_description` filter-hook.
 * 
 * @param  $this->get_button_text() 
 * @param  $that                    
 *
 * @return 
 */
function wp_kama_woocommerce_product_add_to_cart_description_filter( $this->get_button_text(), $that ){

	// filter...
	return $this->get_button_text();
}
$this->get_button_text()
-
$that
-

Where the hook is called

WC_Product_External::add_to_cart_description()
woocommerce_product_add_to_cart_description
WC_Product_Simple::add_to_cart_description()
woocommerce_product_add_to_cart_description
WC_Product::add_to_cart_description()
woocommerce_product_add_to_cart_description
WC_Product_Grouped::add_to_cart_description()
woocommerce_product_add_to_cart_description
WC_Product_Variable::add_to_cart_description()
woocommerce_product_add_to_cart_description
woocommerce/includes/class-wc-product-external.php 192
return apply_filters( 'woocommerce_product_add_to_cart_description', $this->get_button_text() ? $this->get_button_text() : sprintf( __( 'Buy “%s”', 'woocommerce' ), $this->get_name() ), $this );
woocommerce/includes/class-wc-product-simple.php 75
return apply_filters( 'woocommerce_product_add_to_cart_description', sprintf( $text, $this->get_name() ), $this );
woocommerce/includes/abstracts/abstract-wc-product.php 1944
return apply_filters( 'woocommerce_product_add_to_cart_description', sprintf( __( 'Read more about “%s”', 'woocommerce' ), $this->get_name() ), $this );
woocommerce/includes/class-wc-product-grouped.php 53
return apply_filters( 'woocommerce_product_add_to_cart_description', sprintf( __( 'View products in the “%s” group', 'woocommerce' ), $this->get_name() ), $this );
woocommerce/includes/class-wc-product-variable.php 71
return apply_filters( 'woocommerce_product_add_to_cart_description', sprintf( __( 'Select options for “%s”', 'woocommerce' ), $this->get_name() ), $this );

Where the hook is used in WooCommerce

Usage not found.