woocommerce_product_add_to_cart_description, sprintf( $text, $this->get_name(

woocommerce_product_add_to_cart_description, sprintf( $text, $this->get_name(

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.11.0.0

apply_filters('woocommerce_product_add_to_cart_description, sprintf( $text, $this->get_name(') is found 1 times:

  • /includes/class-wc-product-simple.php line 77
    	public function add_to_cart_description() {
    		/* translators: %s: Product title */
    		$text = $this->is_purchasable() && $this->is_in_stock() ? __( 'Add to cart: “%s”', 'woocommerce' ) : __( 'Read more about “%s”', 'woocommerce' );
    
    		return apply_filters( 'woocommerce_product_add_to_cart_description', sprintf( $text, $this->get_name() ), $this );
    	}
    
    	/**
    	 * Get the add to cart button success message - used to update the mini cart live region.
    	 *
    	 * @return string