I do believe that I already knew that this was a law, but not sure exactly why.
www.google.com

Trump barred from posting evidence in hush money case to social media
The judge largely sided with a request from the Manhattan district attorney's office about what Trump can publicly say about certain aspects of the case.
