
Justin Massler -- who appeared in Manhattan Criminal Court moments ago -- was arrested last month after he allegedly posted a bunch of weird and threatening things about Ivanka on the Internet ... including Twitter.
The Manhattan District Attorney's Office tells TMZ an order of protection was issued for all of Donald's kids and his wife Melania.
Massler's bail was set at $10,000 -- as long as he sees a psychiatrist once a week.