Tribe__Tickets__Commerce__PayPal__Main::get_price_value( int|WP_Post $product )
Gets the product price value
Contents
Parameters
- $product
-
(int|WP_Post) (Required)
Return
(string)
Source
File: src/Tribe/Commerce/PayPal/Main.php
public function get_price_value( $product ) {
if ( ! $product instanceof WP_Post ) {
$product = get_post( $product );
}
if ( ! $product instanceof WP_Post ) {
return false;
}
return get_post_meta( $product->ID, '_price', true );
}
Changelog
| Version | Description |
|---|---|
| 4.7 | Introduced. |