Tribe__Tickets_Plus__Commerce__EDD__Main::get_price_value( int|object $product )
Get’s the product price value
Contents
Parameters
- $product
-
(int|object) (Required)
Return
(string)
Source
File: src/Tribe/Commerce/EDD/Main.php
public function get_price_value( $product ) {
$product_id = $product;
// Avoid Catchable Fatal on EDD for using product_id as a possible string
if ( $product instanceof WP_Post ) {
$product_id = $product->ID;
}
$price = edd_get_download_price( $product_id, false );
return $price;
}
Changelog
| Version | Description |
|---|---|
| 4.6 | Introduced. |