| @@ 419-429 (lines=11) @@ | ||
| 416 | return $value; |
|
| 417 | } |
|
| 418 | ||
| 419 | public static function get_post_param( $param, $default = '', $sanitize = '', $serialized = false ) { |
|
| 420 | return self::get_simple_request( |
|
| 421 | array( |
|
| 422 | 'type' => 'post', |
|
| 423 | 'param' => $param, |
|
| 424 | 'default' => $default, |
|
| 425 | 'sanitize' => $sanitize, |
|
| 426 | 'serialized' => $serialized, |
|
| 427 | ) |
|
| 428 | ); |
|
| 429 | } |
|
| 430 | ||
| 431 | /** |
|
| 432 | * @since 2.0 |
|
| @@ 440-449 (lines=10) @@ | ||
| 437 | * |
|
| 438 | * @return string|array |
|
| 439 | */ |
|
| 440 | public static function simple_get( $param, $sanitize = 'sanitize_text_field', $default = '' ) { |
|
| 441 | return self::get_simple_request( |
|
| 442 | array( |
|
| 443 | 'type' => 'get', |
|
| 444 | 'param' => $param, |
|
| 445 | 'default' => $default, |
|
| 446 | 'sanitize' => $sanitize, |
|
| 447 | ) |
|
| 448 | ); |
|
| 449 | } |
|
| 450 | ||
| 451 | /** |
|
| 452 | * Get a GET/POST/REQUEST value and sanitize it |
|