Automattic\WooCommerce\Internal\Admin\Orders
ListTable::column_default()
Handles output for the default column.
Method of the class: ListTable{}
Hooks from the method
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() ListTable::column default code WC 9.6.1
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 ); }