动态文本现在无法在我的联系表单中使用
已使用插件-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"]