Skip to content

Commit

Permalink
add wprs_input_get helper
Browse files Browse the repository at this point in the history
  • Loading branch information
iwillhappy1314 authored Aug 8, 2023
1 parent d65341b commit 48780ea
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 48780ea

Please sign in to comment.