WordPress at Your Fingertips
filter is not described

woocommerce_cart_redirect_after_error filter-hook . WC 1.0

If there was an error adding to the cart, redirect to the product page to show any errors.


add_filter( 'woocommerce_cart_redirect_after_error', 'filter_function_name_3987', 10, 2 );
function filter_function_name_3987( $permalink, $product_id ){
	// filter...

	return $permalink;

Where the hook is called

woocommerce/includes/class-wc-ajax.php 437
'product_url' => apply_filters( 'woocommerce_cart_redirect_after_error', get_permalink( $product_id ), $product_id ),

Where in WP core the hook is used WooCommerce

Usage not found.