You appear to be a bot. Output may be restricted
Description
Given a download post object, generate the data for the API output
Usage
$array = EDD_API_V2::get_product_data( $product_info );
Parameters
- $product_info
- ( object ) required – The Download Post Object
Returns
array Array of post data to return back in the API
Source
File name: easy-digital-downloads/includes/api/class-edd-api-v2.php
Lines:
1 to 12 of 12
public function get_product_data( $product_info ) { // Use the parent's get_product_data to reduce code duplication $product = parent::get_product_data( $product_info ); if ( edd_use_skus() ) { $product['info']['sku'] = edd_get_download_sku( $product['info']['id'] ); } return apply_filters( 'edd_api_products_product_v2', $product ); }