Require login (again?) for label view
This commit is contained in:
parent
a9c8cfce6f
commit
d5c1eb806c
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user