我正在尝试在 woocommerce 自定义电子邮件模板中获取 current_user_id,但它返回 0。有谁知道如何在 wordpress 的电子邮件模板中获取 user_id。当我在任何 php 模板中使用此代码时,我都会获得用户 ID。
下面是我的代码:
<?php global $current_user;
get_currentuserinfo();
echo '<h4>Your code:</h3>' . $current_user->ID . '';
?>
Run Code Online (Sandbox Code Playgroud)
这是完整的模板代码链接: email-template-code
我有可以使用GNAT-GPS完美运行和编译的Ada程序。当我运行其exe文件并提供用户输入时,而不是说“按任意键继续”,该exe立即关闭。
我已经在线搜索了很多,但是我只使用system('pause')找到了与c / c ++ / visual studio控制台窗口有关的信息;或Console.Readline()。
Ada lanaguage有什么办法解决这个问题吗?
我很久以前就编写了一个代码来获取用户输入并在屏幕上打印.现在,我需要将它用于8088汇编程序并面临困难.看起来像汇编程序问题,所以请指导我.
org 100h
.data
var1 db 100 dup("$")
.code
inputString proc
mov ax,@data
mov ds,ax
mov si,offset var1
l1:
mov ah,1
int 21h
cmp al,13
je printString
mov [si],al
inc si
jmp l1
printString:
mov dx, offset var1
mov ah,9
int 21h
mov ah,4ch
int 21h
inputString endp
end inputString
ret
Run Code Online (Sandbox Code Playgroud)