Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,11 @@ function pmproga4_checkout_events() {
return;
}

// Bail if the membership level is not set.
if ( empty( $pmpro_level ) ) {
return;
}

// Build an array of product data.
$gtag_config_ecommerce_products = array();
$gtag_config_ecommerce_products['item_id'] = $pmpro_level->id;
Expand Down