How do I hook into Hugo's build pipeline beyond go templates?

I guess this is somewhat equivalent to writing your own custom Hugo function, which didn’t seem to be possible without fully forking Hugo when it was discussed in 2018: Adding custom functions - #4 by alexandros