• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Easy Digital Downloads a2z

Easy Digital Downloads a2z

Easy Digital Downloads a2z

  • Home
  • Plugins
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / EDD_API_V2::get_product_data() – Given a download post object, generate the data for the API output

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 );

  }
 

 View on GitHub View on Trac

Published: 26th November 2019 | Last updated: 23rd February 2021

Primary Sidebar

Information

Function name: EDD_API_V2::get_product_data
Class ref: EDD_API_V2
Plugin ref: Easy Digital Downloads
Version: 3.1.0.2
Sourcefile: includes/api/class-edd-api-v2.php
File ref: includes/api/class-edd-api-v2.php
Deprecated?: No
API Letters: A,E,G,P,V

Footer

Easy Digital Downloads a2z
Easy Digital Downloads a2z
Easy Digital Downloads a2z
WordPress 6.1.1
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  edd.wp-a2z.org
© Copyright Easy Digital Downloads a2z 2014-2023. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins