Skip to content

Commit

Permalink
Update functions.php (#2092)
Browse files Browse the repository at this point in the history
Getting a fatal error while trying to edit a WooCommerce Subscription under WordPress Admin Dashboard --> WooCommerce --> Subscriptions menu
  • Loading branch information
nurul-umbhiya authored Dec 11, 2023
1 parent 2d82b61 commit b644878
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions includes/Order/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,9 @@ function dokan_sync_insert_order( $order_id ) {
global $wpdb;

$order = wc_get_order( $order_id );
if ( ! $order || $order instanceof WC_Subscription ) {
return;
}

if ( dokan()->order->is_order_already_synced( $order ) ) {
return;
Expand Down

0 comments on commit b644878

Please sign in to comment.