WC_Meta_Box_Order_Actions::get_available_order_actions_for_order()
Get the available order actions for a given order.
Method of the class: WC_Meta_Box_Order_Actions{}
Hooks from the method
Return
Array
.
Usage
$result = WC_Meta_Box_Order_Actions::get_available_order_actions_for_order( $order );
- $order(WC_Order|null) (required)
- The order object or null if no order is available.
Changelog
Since 5.8.0 | Introduced. |
WC_Meta_Box_Order_Actions::get_available_order_actions_for_order() WC Meta Box Order Actions::get available order actions for order code WC 9.8.1
private static function get_available_order_actions_for_order( $order ) { $actions = array( 'send_order_details' => __( 'Send order details to customer', 'woocommerce' ), 'send_order_details_admin' => __( 'Resend new order notification', 'woocommerce' ), 'regenerate_download_permissions' => __( 'Regenerate download permissions', 'woocommerce' ), ); /** * Filter: woocommerce_order_actions * Allows filtering of the available order actions for an order. * * @since 2.1.0 Filter was added. * @since 5.8.0 The $order param was added. * * @param array $actions The available order actions for the order. * @param WC_Order|null $order The order object or null if no order is available. */ return apply_filters( 'woocommerce_order_actions', $actions, $order ); }