Scott Disick plans to remain in rehab for 90 days.
The 32-year-old star has reportedly promised ex-girlfriend Kourtney Kardashian, 36, and her mother, Kris Jenner, he will continue his treatment at the Cliffside Malibu in California until early January after they warned him they would fight his bid to gain joint custody of their children, Mason, five, Penelope, three, and Reign, 10 months, if he leaves the programme early.
A source close to the 'Keeping Up with the Kardashians' star, who checked into the luxurious treatment centre more than two weeks ago after three brief attempts to seek help for his drug and alcohol issues in the past, said: "Kris and Kourtney have set the terms that he is to stay in treatment for a total of 90 days, with the option to do outpatient after one month.
"They told him that anything less is not acceptable and will prevent him from obtaining joint custody.
"He was left with no other choice. Kris also told him that all of his friends are enablers and he has to get rid of them if he wants to really get better. He knows that he needs to 86 all of his buddies from his life."
The Kardashian family matriarch, 59, brought Scott's three children to visit him at the facility this week and he plans to do everything he can to get his life back on track.
The insider told gossip website RadarOnline.com: "Scott is actually taking this seriously. He told the them all that he will do whatever they want him to do so that he can remain a full-time father to his children."