Automattic\WooCommerce\Internal\Admin\Orders

ListTable::column_default()publicWC 1.0

Handles output for the default column.

Method of the class: ListTable{}

Return

null. Nothing (null).

Usage

$ListTable = new ListTable();
$ListTable->column_default( $order, $column_name );
$order(\WC_Order) (required)
Current WooCommerce order object.
$column_name(string) (required)
Identifier for the custom column.

ListTable::column_default() code WC 8.7.0

public function column_default( $order, $column_name ) {
	/**
	 * Fires for each custom column for a specific order type. This hook takes precedence over the generic
	 * action `manage_{$this->screen->id}_custom_column`.
	 *
	 * @param string    $column_name Identifier for the custom column.
	 * @param \WC_Order $order       Current WooCommerce order object.
	 *
	 * @since 7.3.0
	 */
	do_action( 'woocommerce_' . $this->order_type . '_list_table_custom_column', $column_name, $order );

	/**
	 * Fires for each custom column in the Custom Order Table in the administrative screen.
	 *
	 * @param string    $column_name Identifier for the custom column.
	 * @param \WC_Order $order       Current WooCommerce order object.
	 *
	 * @since 7.0.0
	 */
	do_action( "manage_{$this->screen->id}_custom_column", $column_name, $order );
}