WC_Meta_Box_Order_Actions
in package
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
output()
Output the metabox.
public
static output(WP_Post|WC_Order $post) : mixed
Parameters
- $post : WP_Post|WC_Order
-
Post or order object.
Return values
mixed —save()
Save meta box data.
public
static save(int $post_id, WP_Post $post) : mixed
Parameters
- $post_id : int
-
Post ID.
- $post : WP_Post
-
Post Object.
Return values
mixed —set_email_sent_message()
Set the correct message ID.
public
static set_email_sent_message(string $location) : string
Parameters
- $location : string
-
Location.
Tags
Return values
string —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
Return values
array<string|int, mixed> —get_trash_or_delete_order_link()
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.