Obtain full v2 REST url?

In my themes functions.php I call get_rest_url() and I get the url http://mywebsite.com/wp-json/. But thats not the full url. I need something like http://mywebsite.com/wp-json/wp/v2/

Is there a WordPress function that will give me this url?

Read more here:: Obtain full v2 REST url?

Leave a Reply

Your email address will not be published. Required fields are marked *