Hello,
this is the code I have added in the function.php file:
function folio_genCodigoTicket() {
$len = 10;
$caracteres = “0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ”;
for ($p = 0; $p < $len; $p++) {
$string .= $caracteres[mt_rand(0, strlen($caracteres)-1)];
}
return $string;
}
add_shortcode(‘codigoticket’, ‘folio_genCodigoTicket’);
ok, that’s fine, even though I already have the template updated and I had already deactivated all the plugins.
Mind you not overwriting the functions.php file because I have some custom codes.
thanks