There are many frameworks that will provide a helper object for dealing with these variables i.e. symfony has a
object that has a member function
) that can get used to get
and
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
action, however some articles mention it will only work with GET. I was unable to get this to work with a form using both
and
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?
Code:
sfRequest
Code:
getParameter(
Code:
$_POST
Code:
$_GET
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
Code:
$_POST
Code:
$_GET
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?