Viewing 1 replies (of 1 total)
  • Thread Starter Gnanasekaran Loganathan

    (@gnanasekaran)

    I used below hook.
    /**
    * Modify url base from wp-json to ‘api’
    */
    add_filter( ‘rest_url_prefix’, ‘egr_magnificent_api_slug’);

    function egr_magnificent_api_slug( $slug ) {
    return ‘mg’;
    }

Viewing 1 replies (of 1 total)
  • The topic ‘Change URL namespace’ is closed to new replies.