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