Skip to content

Commit

Permalink
Eliminate unneeded cart meta field
Browse files Browse the repository at this point in the history
I've never used this, and am not aware of anybody using it.
  • Loading branch information
joedolson committed Dec 23, 2023
1 parent b46f27d commit cf2449f
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/mt-cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -1209,16 +1209,3 @@ function mt_get_cart( $user_ID = false, $cart_id = false ) {
}
return $cart;
}

add_action( 'wp_head', 'mt_cart_meta', 1 );
/**
* Adds the user's cart ID into <head> meta data for admin retrieval for customer assistance.
*
* Cart Data does not expose any user-specific information; contains only event ID and tickets selected.
*/
function mt_cart_meta() {
$unique_id = mt_get_unique_id();
if ( $unique_id ) {
echo "<meta name='cart_id' value='" . esc_attr( $unique_id ) . "' />\n";
}
}

0 comments on commit cf2449f

Please sign in to comment.