woocommerce_prepare_attachment_for_js

The WooCommerce woocommerce prepare attachment for js function.

Description

woocommerce_prepare_attachment_for_js( $response ); 

Parameters (1)

0. $response
The response.

Usage

  1. if ( !function_exists( 'woocommerce_prepare_attachment_for_js' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-deprecated-functions.php'; 
  3.  
  4. // The response. 
  5. $response = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = woocommerce_prepare_attachment_for_js($response); 
  9.  

Defined (1)

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

/includes/wc-deprecated-functions.php  
  1. function woocommerce_prepare_attachment_for_js( $response ) { 
  2. return wc_prepare_attachment_for_js( $response );