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