Millwall boss Mark McGhee said: "Originally myself and Glenn Roeder agreed to keep him here until the end of the season.
"But once it became clear West Ham had no recall option we understood their desire to extend his stay on a month-by-month basis."