Does Wordpress have any wrapper classes for $_POST, $_GET and $_REQUEST?

admin

Administrator
Staff member
There are many frameworks that will provide a helper object for dealing with these variables i.e. symfony has a
Code:
sfRequest
object that has a member function
Code:
getParameter(
) that can get used to get
Code:
$_POST
and
Code:
$_GET
variables.

I'm wondering if Wordpress has something similar to this? I've seen <a href="https://wordpress.stackexchange.com/questions/37682/passing-post-data-from-one-wp-post-to-another">this solution</a> that seems to append the new variables to the
Code:
query_vars
action, however some articles mention it will only work with GET. I was unable to get this to work with a form using both
Code:
$_POST
and
Code:
$_GET
myself, and certainly wouldn't think this is ideal to use if you have many variables that can be passed this way.

Is using plain old $_REQUEST, $_POST and $_GET the standard way to do work with request variables in Wordpress? Or is there a better way (specifically using the functions provided by Wordpress, rather than other libraries) to handle this?