woocommerce_template_single_price()
Output the product price.
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
woocommerce_template_single_price();
Код woocommerce_template_single_price() woocommerce template single price WC 9.9.4
function woocommerce_template_single_price() { if ( ! is_a( $GLOBALS['product'] ?? null, \WC_Product::class ) ) { return; } wc_get_template( 'single-product/price.php' ); }