• Resolved Der-Bank-Blog

    (@der-bank-blog)


    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

    (@hcabrera)

    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

    (@der-bank-blog)

    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

    (@hcabrera)

    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

    (@der-bank-blog)

    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.