Using the hook `override_doctype_class`

I’m on v12 of frappe. And I need to override a method of a doctype class, I know this has been asked a lot, but I’m not able to make this hook called override_doctype_class work. The system isn’t reaching the custom method.
I’m talking about this: feat: Ability to override doctype classes from hooks by netchampfaris · Pull Request #11527 · frappe/frappe · GitHub
I’m not sure if there’s something I’m missing! Any help, please? @netchampfaris

Hi @DeeMysterio

That hook is a v13 feature. From the pull request discussion you linked, it looks like there’s some intention to backport but nothing’s happened yet.