_wpsc_ajax_upload_product_file

Save a downloadable file to a product.

Description

(array|WP_Error) _wpsc_ajax_upload_product_file(); 

Returns (array|WP_Error)

Response args if successful, WP_Error if otherwise.


Usage

  1. if ( !function_exists( '_wpsc_ajax_upload_product_file' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'wp-ecommerce/wpsc-admin/ajax.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = _wpsc_ajax_upload_product_file(); 
  7.  

Defined (1)

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

/wpsc-admin/ajax.php