Intercept page request and add value to it

I am trying to intercept the GET request of a post and add a value to it.

function foo($request) {
$request[‘vid’] = wp_generate_uuid4();

return $request;
}
add_filter( ‘request’, ‘foo’ );

and hope that it would be available later with

$_REQUEST[‘vid’]

but no access so far any ideas?

Read more here:: Intercept page request and add value to it

Leave a Reply

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