order_edit_form_top action-hookWC 8.0.0

Fires at the top of the order edit form. Can be used as a replacement for edit_form_top hook for HPOS.

Usage

add_action( 'order_edit_form_top', 'wp_kama_order_edit_form_top_action' );

/**
 * Function for `order_edit_form_top` action-hook.
 * 
 * @param \WC_Order $order Order object.
 *
 * @return void
 */
function wp_kama_order_edit_form_top_action( $order ){

	// action...
}
$order(\WC_Order)
Order object.

Changelog

Since 8.0.0 Introduced.

Where the hook is called

Edit::render_wrapper_start()
order_edit_form_top
woocommerce/src/Internal/Admin/Orders/Edit.php 471
do_action( 'order_edit_form_top', $this->order );

Where the hook is used in WooCommerce

Usage not found.