EXCLUSIVE

CM Punk's legal wish has been granted -- a judge has issued a 2-year restraining order against the WWE superstar's estranged mother after she allegedly bombarded him with threats, TMZ has learned.

We broke the story ... Punk filed legal docs in Illinois claiming his mom threatened to commit suicide several times after he stopped giving her money to pay for her living situation. Punk also claimed his mom had threatened to expose humiliating secrets from his past.

Punk had already received a temporary restraining order against his mom -- but today, the judge decided to extend the order of protection for 2 years.