Troubleshooting WP API update in functions file