mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Pass the WC_Order class id instead of the WP_Post object id
This commit is contained in:
parent
521ba0e24a
commit
2c27bf91d9
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ class MetaBoxRenderer {
|
|||
return;
|
||||
}
|
||||
|
||||
$tracking_info = $this->order_tracking_endpoint->get_tracking_information( $post->ID );
|
||||
$tracking_info = $this->order_tracking_endpoint->get_tracking_information( $wc_order->get_id() );
|
||||
|
||||
$tracking_is_not_added = empty( $tracking_info );
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue