WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
фильтр не описан

woocommerce_add_to_cart_form_action хук-фильтр . WC 1.0

Использование

add_filter( 'woocommerce_add_to_cart_form_action', 'filter_function_name_6636' );
function filter_function_name_6636( $product_permalink ){
	// filter...

	return $product_permalink;
}
$product_permalink
-

Где вызывается хук

В файле: /templates/single-product/add-to-cart/variable.php
woocommerce_add_to_cart_form_action
woocommerce/templates/single-product/add-to-cart/variable.php 28
<form class="variations_form cart" action="<?php echo esc_url( apply_filters( 'woocommerce_add_to_cart_form_action', $product->get_permalink() ) ); ?>" method="post" enctype='multipart/form-data' data-product_id="<?php echo absint( $product->get_id() ); ?>" data-product_variations="<?php echo $variations_attr; // WPCS: XSS ok. ?>">
woocommerce/templates/single-product/add-to-cart/simple.php 32
<form class="cart" action="<?php echo esc_url( apply_filters( 'woocommerce_add_to_cart_form_action', $product->get_permalink() ) ); ?>" method="post" enctype='multipart/form-data'>
woocommerce/templates/single-product/add-to-cart/grouped.php 24
<form class="cart grouped_form" action="<?php echo esc_url( apply_filters( 'woocommerce_add_to_cart_form_action', $product->get_permalink() ) ); ?>" method="post" enctype='multipart/form-data'>

Где используется хук (в ядре WC)

includes/class-wc-shortcodes.php 506
add_filter( 'woocommerce_add_to_cart_form_action', '__return_empty_string' );
includes/class-wc-shortcodes.php 580
remove_filter( 'woocommerce_add_to_cart_form_action', '__return_empty_string' );