woocommerce_untrash_order

woocommerce_untrash_order

Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

do_action('woocommerce_untrash_order') is found 1 times:

  • /src/Internal/DataStores/Orders/OrdersTableDataStore.php line 2344
    		 *
    		 * @param int    $order_id        Order ID.
    		 * @param string $previous_status The status of the order before it was trashed.
    		 */
    		do_action( 'woocommerce_untrash_order', $order->get_id(), $previous_status );
    
    		$order->set_status( $previous_status );
    		$order->save();
    
    		// Was the status successfully restored? Let's clean up the meta and indicate success...
    		if ( 'wc-' . $order->get_status() === $previous_status ) {
    

See this hook used in plugins: