Ciao a tutti, ho creato una custom rewrite che funziona correttamente utilizzando
add_rewrite_tag() e add_rewrite_rule() . Una volta creata richiamo flush_rules() e tutto funziona(senza flush no)
Per qalche ragione nel momento in cui viene eseguito altro lato amministrazione/script ogni tot tempo random la mia regola viene eliminata e devo rigenerarla(ho creato una form per questo) e tutto torna a posto.
So che flush_rules() viene richiamato sull’update dei permalink ma non so in quale altro momento.
Cosa dovrei fare per mantenere sempre atttiva la mia rewrite?
Grazie