$yourId = wp_get_current_user()->user_login;
$allowed_users = array( “[email protected]”, “[email protected]”, “[email protected]”, “balajivalmiki”, “nkoka”, “[email protected]”);
if ( (is_user_logged_in() && current_user_can(‘administrator’) ) ||
(is_user_logged_in() && in_array($yourId, $allowed_users) )
)
$authUser = TRUE;
if($authUser == FALSE)
{
wp_redirect( site_url() ); exit;
}
[/insert_php]
# | Name | Email/Phone | Event Type | Purchased | Quantity | Unit Price | Total Price |
---|---|---|---|---|---|---|---|
” . ($cnt++) . “ | ” . ($page->Name) . “ | ” . $page->Email . “ ” . $page->Phone . “ |
” . ($page->Event) . “ | ” . ($page->Purchased) . “ |
” . ($page->Quantity) . “
|
” . str_replace(‘$’, ‘$ ‘, ($page->UnitPrice)) . “ | ” . str_replace(‘$’, ‘$ ‘, ($page->TotalPrice)) . “ |
Total: | $ [insert_php]echo number_format($grand_total_paid); [/insert_php] |