woocommerce_admin_order_data_after_payment_info хук-событиеWC 7.9.0

Hook allowing extenders to render custom content within the Order details box.

This allows urgent notices or other important order-related info to be displayed upfront in the order page. Example: display a notice if the order is disputed.

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

add_action( 'woocommerce_admin_order_data_after_payment_info', 'wp_kama_woocommerce_admin_order_data_after_payment_info_action' );

/**
 * Function for `woocommerce_admin_order_data_after_payment_info` action-hook.
 * 
 * @param $order $order WC_Order The order object being displayed.
 *
 * @return void
 */
function wp_kama_woocommerce_admin_order_data_after_payment_info_action( $order ){

	// action...
}
$order($order)
WC_Order The order object being displayed.

Список изменений

С версии 7.9.0 Введена.

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

WC_Meta_Box_Order_Data::output()
woocommerce_admin_order_data_after_payment_info
woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php 292
do_action( 'woocommerce_admin_order_data_after_payment_info', $order );

Где используется хук в WooCommerce

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