Plugin breaks REST API – wp-json/wp/v2

Once I activate the plugin (free version ) the REST API gets broken. Adds the following code right before the JSON when you visit yourdomain.com/wp-json/wp/v2

//after activating the plugin
<html><body></body></html>{JSON}

//after deactivating the plugin
{JSON}

This behaviour pretty much kills every REST API Call because you always get the error “Unexpected Token ‘<‘” since REST expects JSON.

Any idea how to avoid this?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer