ex post facto
adjective
[ ˌɛks pəʊst ˈfaktəʊ ]
• having retrospective effect or force.
• "ex post facto laws"
ex post facto
adverb
• retrospectively.
• "the law is being applied ex post facto"
Origin:
erroneous division of Latin ex postfacto ‘in the light of subsequent events’.