woocommerce_order_fully_refunded_status
Filter the status to set the order to when fully refunded.
Usage
add_filter( 'woocommerce_order_fully_refunded_status', 'wp_kama_woocommerce_order_fully_refunded_status_filter', 10, 3 );
/**
* Function for `woocommerce_order_fully_refunded_status` filter-hook.
*
* @param string $parent_status The status to set the order to when fully refunded.
* @param int $order_id The order ID.
* @param int $refund_id The refund ID.
*
* @return string
*/
function wp_kama_woocommerce_order_fully_refunded_status_filter( $parent_status, $order_id, $refund_id ){
// filter...
return $parent_status;
}
- $parent_status(string)
- The status to set the order to when fully refunded.
- $order_id(int)
- The order ID.
- $refund_id(int)
- The refund ID.
Changelog
| Since 2.7.0 | Introduced. |
Where the hook is called
woocommerce_order_fully_refunded_status
woocommerce/includes/wc-order-functions.php 728
$parent_status = apply_filters( 'woocommerce_order_fully_refunded_status', OrderStatus::REFUNDED, $order->get_id(), $refund->get_id() );