woocommerce_admin_order_actions
Provides an opportunity to modify the action buttons within the order list table.
Usage
add_filter( 'woocommerce_admin_order_actions', 'wp_kama_woocommerce_admin_order_actions_filter', 10, 2 ); /** * Function for `woocommerce_admin_order_actions` filter-hook. * * @param array $action Order actions. * @param WC_Order $order Current order object. * * @return array */ function wp_kama_woocommerce_admin_order_actions_filter( $action, $order ){ // filter... return $action; }
- $action(array)
- Order actions.
- $order(WC_Order)
- Current order object.
Changelog
Since 6.7.0 | Introduced. |
Where the hook is called
woocommerce_admin_order_actions
woocommerce/src/Internal/Admin/Orders/ListTable.php 1194
$actions = apply_filters( 'woocommerce_admin_order_actions', $actions, $order );