【发布时间】:2022-01-31 21:20:13
【问题描述】:
我目前在 wordpress 中使用此代码:
// [date]
function displaydate(){
return date('l, F jS, Y');
}
add_shortcode('date', 'displaydate');
// end date
--
我想做的是添加另一个显示今天日期+1天的短代码。
所以我可以这样写:
'...优惠用完 [今天日期 +1 天]'
有人知道怎么做吗?
【问题讨论】:
-
使用 javascript 或 jquery 或..... ????
-
抱歉,我不确定,无论是 wordpress 编辑器中的主题 functions.php 中的内容。