add_to_cart_shortcode

19-02-09 add to cart shortcode function used for shortcodes calls the function in product_display_functions.php.

Description

add_to_cart_shortcode( (string) $content = '' ); 

Parameters (1)

0. $content — Optional. (string) => ''
The content.

Usage

  1. if ( !function_exists( 'add_to_cart_shortcode' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'wp-ecommerce/wpsc-components/theme-engine-v1/helpers/ajax.php'; 
  3.  
  4. // The content. 
  5. $content = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = add_to_cart_shortcode($content); 
  9.  

Defined (1)

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

/wpsc-components/theme-engine-v1/helpers/ajax.php