woocommerce_template_single_add_to_cart()
Trigger the single product add to cart action.
Хуки из функции
Возвращает
null
. Ничего (null).
Использование
woocommerce_template_single_add_to_cart();
Код woocommerce_template_single_add_to_cart() woocommerce template single add to cart WC 8.7.0
function woocommerce_template_single_add_to_cart() { global $product; do_action( 'woocommerce_' . $product->get_type() . '_add_to_cart' ); }