Namespace \PlusBusinessSoftware\WooCommerce
Bestand: Orders.php
/**
* Allow manipulation of extra order columns
*
* @filter plus_orders_extra_order_columns
* @param array An array of extra columns to show with the normal order columns.
* @return array An array of extra columns to show with the normal order columns.
*/
$this->extra_customer_order_columns = apply_filters( 'plus_orders_extra_order_columns', [
'king_shipped' => __('Aantal geleverd', 'plus-king-woocommerce'),
'king_backorder' => __('Aantal in backorder', 'plus-king-woocommerce'),
'king_leverdatum' => __('Verwachte leverdatum', 'plus-king-woocommerce'),
] );
/**
* Allow overriding the column title.
*
* @filter plus_order_details_extra_header_column_title
* @param string $extra_column_title The title to show for the column.
* @param string $extra_column_name The name of the column.
* @return string The title to show for the column.
*/
echo "" . apply_filters( 'plus_order_details_extra_header_column_title', $extra_column_title, $extra_column_name ) . " ";
/**
* Allow overriding the column value.
*
* @filter plus_extra_order_column_value
* @param mixed $value The value to show for the column.
* @param string $extra_column_name The name of the column.
* @param array $king_orderdata Array containing order information
* @param WC_Product $_product The product for which the column is being shown
* @return mixed The value to show for the column.
*/
echo '' . apply_filters('plus_extra_order_column_value', $value, $extra_column_name, $king_orderdata, $_product ) . ' ';
/**
* Allow overriding the column title.
*
* @filter plus_order_details_extra_admin_header_column_title
* @param string $extra_column_title The title of the column.
* @param string $extra_column_name The name of the column.
* @return string The title of the column.
*/
echo "" . apply_filters( 'plus_order_details_extra_admin_header_column_title', $extra_column_title, $extra_column_name ) . " ";
/**
* Allow overriding the column value.
*
* @filter plus_extra_admin_order_column_value
* @param mixed $value The value to show for the column.
* @param string $extra_column_name The name of the column.
* @param array $king_orderdata Array containing order information
* @param WC_Product $_product The product for which the column is being shown
* @return mixed The value to show for the column.
*/
echo '' . apply_filters('plus_extra_admin_order_column_value', $value, $extra_column_name, $this->king_orderdata, $product ) . ' ';