How can I make certain parameters of the WordPress Rest API accessible to anyone without first being authenticated – for example, the page parameter doesn’t work (where blog is a custom post type) in this query:

I’ve seen that in the past it’s been possible to make these params available, for instance :

add_filter( 'json_query_vars', function( $valid_vars ) {

    $valid_vars[] = 'offset';

    return $valid_vars;

Is there any way to do something similar with today’s version of the API?

Read more here: How to make WordPress Rest API parameters accessible without authentication?


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: