I’m so sorry for the slow reply, I wasn’t getting most forum notifications since switching laptop, so am catching up on everything now.
But I recall you contacted me via email, and the above code was correct, you just needed to ensure the priority for the add_action call was higher than MT’s (999999).