Updated getting API base to WPUtility function.