Fixing API registration
WP-1078