Added WP_API class