• Resolved tricarte

    (@tricarte)


    I change the default Rest API prefix from ‘wp-json’ to ‘api’ using this filter in a mu-plugin.

    <?php
    function wpr_rest_api_prefix ()
    {
    return 'api';
    }
    add_filter( 'rest_url_prefix', 'wpr_rest_api_prefix');

    And I think this plugin does not detect this. Because nothing is listed in ‘Endpoint API caches’.

    If I’m right, can you add this feature, please? Thanks in advance.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Custom ‘rest_url_prefix’’ is closed to new replies.