woocommerce_template_single_price()
Output the product price.
No Hooks.
Returns
null
. Nothing (null).
Usage
woocommerce_template_single_price();
woocommerce_template_single_price() woocommerce template single price code WC 9.9.3
function woocommerce_template_single_price() { if ( ! is_a( $GLOBALS['product'] ?? null, \WC_Product::class ) ) { return; } wc_get_template( 'single-product/price.php' ); }