我的联系表格中的动态文本现在不起作用7
使用的插件 - https://wordpress.org/plugins/contact-form-7-dynamic-text-extension/
几天前,下面的代码运行良好,但现在无法运行。它显示相同的报价单。
/* Generate Quote Ticket */
function genTicketString()
{
$length = 8;
$characters = "0123456789";
for ($p = 0; $p < $length; $p++)
{
$string .= $characters[mt_rand(0, strlen($characters)-1)];
}
return $string;
}
add_shortcode('quoteticket', 'genTicketString');
/* short code added in my contact form 7 */
[dynamichidden ticket_id "quoteticket"]