WooCommerce Code Reference

WC_Meta_Box_Order_Actions

WC_Meta_Box_Order_Actions Class.

Table of Contents

output()  : mixed
Output the metabox.
save()  : mixed
Save meta box data.
set_email_sent_message()  : string
Set the correct message ID.
get_available_order_actions_for_order()  : array<string|int, mixed>
Get the available order actions for a given order.
get_trash_or_delete_order_link()  : string
Forms a trash/delete order URL.

Methods

get_available_order_actions_for_order()

Get the available order actions for a given order.

private static get_available_order_actions_for_order(WC_Order|null $order) : array<string|int, mixed>
Parameters
$order : WC_Order|null

The order object or null if no order is available.

Tags
since
5.8.0
Return values
array<string|int, mixed>

Forms a trash/delete order URL.

private static get_trash_or_delete_order_link(int $order_id) : string
Parameters
$order_id : int

The order ID for which we want a trash/delete URL.

Return values
string