Title: Rest API
Last modified: March 29, 2019

---

# Rest API

 *  Resolved [Der-Bank-Blog](https://wordpress.org/support/users/der-bank-blog/)
 * (@der-bank-blog)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/rest-api-52/)
 * Hola Hector
 * hope you are well. I just struggled over a Topic that your Plugin Needs the Rest
   API.
 * Do I understand this correctly, that the Rest API is not allowed to be deactivated(
   e.g. in the functions.php)?
 * Cheers from Germany
    Hansjörg

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/rest-api-52/#post-11370873)
 * Hola Hansjörg,
 * Yes, the plugin relies on the REST API to keep track of visits and a couple of
   other things. Disabling the REST API completely might not be a good idea, not
   only because WPP needs it but also because WordPress itself is also moving towards
   using it for everything (eg. the Gutenberg editor).
 * If you want to disable the REST API for security reasons, installing a security
   plugin (such as WP Cerber) will allow you to restrict access to it and prevent
   its misuse.
 *  Thread Starter [Der-Bank-Blog](https://wordpress.org/support/users/der-bank-blog/)
 * (@der-bank-blog)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/rest-api-52/#post-11370953)
 * Hola Hector
 * thanks for the quick reply. I deactivated it via funtions.php
 *     ```
       function remove_api () {
       remove_action( 'wp_head', 'rest_output_link_wp_head', 10 );
       remove_action( 'wp_head', 'wp_oembed_add_discovery_links', 10 );
       }
       add_action( 'after_setup_theme', 'remove_api' );
       ```
   
 * Strange enough. Your Plugin is still working.
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/rest-api-52/#post-11371073)
 * Ah, I think that what that code does is remove the REST API links from your theme’s`
   <head>` section. If so then it’s all good, the REST API is still working and 
   WPP should be able to do its thing normally.
 *  Thread Starter [Der-Bank-Blog](https://wordpress.org/support/users/der-bank-blog/)
 * (@der-bank-blog)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/rest-api-52/#post-11371161)
 * OK thanks for your quick and professional help

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Rest API’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-popular-posts/assets/icon-256x256.png?rev=1232659)
 * [WP Popular Posts](https://wordpress.org/plugins/wordpress-popular-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-popular-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-popular-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-popular-posts/reviews/)

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)
 * [rest](https://wordpress.org/support/topic-tag/rest/)

 * 4 replies
 * 2 participants
 * Last reply from: [Der-Bank-Blog](https://wordpress.org/support/users/der-bank-blog/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/rest-api-52/#post-11371161)
 * Status: resolved