Skip to content

Commit 2d436ba

Browse files
committed
add missing global declaration
1 parent d8601dc commit 2d436ba

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

classes/WpMatomo/Ecommerce/Woocommerce.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ public function anonymise_orderid_in_url( $order_id ) {
145145
}
146146

147147
public function maybe_track_order_complete() {
148+
global $wp;
149+
148150
if ( function_exists( 'is_order_received_page' ) && is_order_received_page() ) {
149151
$order_id = isset( $wp->query_vars['order-received'] ) ? absint( $wp->query_vars['order-received'] ) : 0;
150152

0 commit comments

Comments
 (0)