Added missing PHP functions and WordPress functions.