woocommerce_(order_type)_list_table_custom_column action-hookWC 7.3.0

Fires for each custom column for a specific order type. This hook takes precedence over the generic action manage_{$this->screen->id}_custom_column.

Usage

add_action( 'woocommerce_(order_type)_list_table_custom_column', 'wp_kama_woocommerce_order_type_list_table_custom_column_action', 10, 2 );

/**
 * Function for `woocommerce_(order_type)_list_table_custom_column` action-hook.
 * 
 * @param string    $column_name Identifier for the custom column.
 * @param \WC_Order $order       Current WooCommerce order object.
 *
 * @return void
 */
function wp_kama_woocommerce_order_type_list_table_custom_column_action( $column_name, $order ){

	// action...
}
$column_name(string)
Identifier for the custom column.
$order(\WC_Order)
Current WooCommerce order object.

Changelog

Since 7.3.0 Introduced.

Where the hook is called

ListTable::column_default()
woocommerce_(order_type)_list_table_custom_column
woocommerce/src/Internal/Admin/Orders/ListTable.php 184
do_action( 'woocommerce_' . $this->order_type . '_list_table_custom_column', $column_name, $order );

Where the hook is used in WooCommerce

Usage not found.