Require login (again?) for label view

This commit is contained in:
3wc 2024-06-10 12:46:24 -05:00
parent a9c8cfce6f
commit d5c1eb806c

View File

@ -1,5 +1,9 @@
<?php
/* Template Name: Coffee Label */
if(!is_user_logged_in()){
auth_redirect();
}
?>
<!DOCTYPE html>
<html lang="en">
@ -81,7 +85,10 @@
</head>
<body>
<div class="container">
<?php foreach ($_GET["order_ids"] as $order_id) {
<?php
$j = 0;
foreach ($_GET["order_ids"] as $order_id) {
$order = wc_get_order($order_id);
$first_name = $order->get_billing_first_name();
$last_name = $order->get_billing_last_name();