woocommerce_product_add_to_cart_description хук-фильтрWC 1.0

translators: %s: Product title

Использование

add_filter( 'woocommerce_product_add_to_cart_description', 'wp_kama_woocommerce_product_add_to_cart_description_filter', 10, 2 );
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
-

Где вызывается хук

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 1907
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 );

Где используется хук в WooCommerce

Использование не найдено.