This is an idea for domesticating hoglins for farming outside the nether and they being passive. I think hoglins should be tameable with a more complicated process including levels and breeding multiple times. There would be 5 levels.
Each time you breed a 2 hogs with the same level, you get a baby with the next highest level. If you breed one with a previous level and the current level, you would have a 50% chance of the baby being 1 level higher or the same level as the hog with the higher level.
The hoglin would follow with these levels:
Level 0: Full Wild - As spawned naturally in crimson forests,
Level 1: First Breeding - This would be the same as previous, but the hog could not despawn and would be the result of a bred piglet growing up, nor could be hunted by piglins.
Level 2: Immune to Zombifying - When 2 level 1 hogs are bred, the baby would no longer turn into a zoglin if outside the nether. If curing zoglins is added, the cured zoglin would begin at level 2.
Level 3: Partially Domesticated: If you get 2 hogs with the previous level and breed them in any dimension, they baby with this level would no longer fling players but still could hurt them with reduced damage.
Level 4: Passive in Nether. The hog would be passive to players in the nether, but would behave like lvl 3 in the overworld/end.
Level 5: Fully Tamed/Domesticated: The hog would now have black pixels in its eyes more like pigs, and would be passive. Ready for farming pork in any dimension as long as you have a crimson fungus supply. In addition, the hoglin would no longer be scared of warped fungi.
In addition, hoglins would now follow players holding crimson fungi.
The picture has 2 hogs: Left is a wild or levels 0 to 4 as of this idea.
A level 5 would be the one on the right.