woocommerce_review_order_form_fields action-hookWC 10.8.0

Fires after the rating + textarea inside a Review Order form row, as a sibling of the row's columns so injected fields render below them.

Echo HTML directly; the surrounding container expects no return value.

Usage

add_action( 'woocommerce_review_order_form_fields', 'wp_kama_woocommerce_review_order_form_fields_action', 10, 4 );

/**
 * Function for `woocommerce_review_order_form_fields` action-hook.
 * 
 * @param WC_Order_Item_Product $item      The line item being reviewed.
 * @param WC_Product            $product   The associated product.
 * @param WC_Order              $order     The order.
 * @param int                   $row_index Zero-based row index for input names.
 *
 * @return void
 */
function wp_kama_woocommerce_review_order_form_fields_action( $item, $product, $order, $row_index ){

	// action...
}
$item(WC_Order_Item_Product)
The line item being reviewed.
$product(WC_Product)
The associated product.
$order(WC_Order)
The order.
$row_index(int)
Zero-based row index for input names.

Changelog

Since 10.8.0 Introduced.

Where the hook is called

In file: /templates/order/customer-review-order-row.php
woocommerce_review_order_form_fields
woocommerce/templates/order/customer-review-order-row.php 112
do_action( 'woocommerce_review_order_form_fields', $item, $product, $order, $row_index );

Where the hook is used in WooCommerce

Usage not found.