woocommerce_product_add_to_cart_description

woocommerce_product_add_to_cart_description

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

apply_filters('woocommerce_product_add_to_cart_description') is found 5 times:

  • /includes/abstracts/abstract-wc-product.php line 2008
    	 * @return string
    	 */
    	public function add_to_cart_description() {
    		/* translators: %s: Product title */
    		return apply_filters( 'woocommerce_product_add_to_cart_description', sprintf( __( 'Read more about “%s”', 'woocommerce' ), $this->get_name() ), $this );
    	}
    
    	/**
    	 * Returns the main product image.
    	 *
    	 * @param  string $size (default: 'woocommerce_thumbnail').
    
  • /includes/class-wc-product-external.php line 192

    Warning: Undefined array key 194 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    Warning: Undefined array key 195 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    Warning: Undefined array key 196 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    Warning: Undefined array key 197 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    	 * @return string
    	 */
    	public function add_to_cart_description() {
    		/* translators: %s: Product title */
    		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 );
    	}
    }
    
    
    
    
    
  • /includes/class-wc-product-grouped.php line 53
    	 * @return string
    	 */
    	public function add_to_cart_description() {
    		/* translators: %s: Product title */
    		return apply_filters( 'woocommerce_product_add_to_cart_description', sprintf( __( 'View products in the “%s” group', 'woocommerce' ), $this->get_name() ), $this );
    	}
    
    	/**
    	 * Returns whether or not the product is on sale.
    	 *
    	 * @param  string $context What the value is for. Valid values are view and edit.
    
  • /includes/class-wc-product-simple.php line 75
    	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
    
  • /includes/class-wc-product-variable.php line 87
    	 * @return string
    	 */
    	public function add_to_cart_description() {
    		/* translators: %s: Product title */
    		return apply_filters( 'woocommerce_product_add_to_cart_description', sprintf( __( 'Select options for “%s”', 'woocommerce' ), $this->get_name() ), $this );
    	}
    
    	/**
    	 * Get an array of all sale and regular prices from all variations. This is used for example when displaying the price range at variable product level or seeing if the variable product is on sale.
    	 *
    	 * @param  bool $for_display If true, prices will be adapted for display based on the `woocommerce_tax_display_shop` setting (including or excluding taxes).