diff --git a/src/helpers.php b/src/helpers.php index 8338557..194a1f9 100644 --- a/src/helpers.php +++ b/src/helpers.php @@ -918,3 +918,17 @@ function wprs_data_get($array, $key, $default = null) return $array; } } + + +if ( ! function_exists('wprs_input_get')) { + /** + * @param $key + * @param $default + * + * @return array|mixed + */ + function wprs_input_get($key, $default = null) + { + return wprs_data_get($_REQUEST, $key, $default); + } +} \ No newline at end of file