Get value from $_POST.
beans_post( string $needle, mixed $default = null )
Return: (string) Value if found, $default otherwise.
Parameters
Name | Type | Required | Default | Description |
---|---|---|---|---|
$needle | string | true | - | Name of the searched key. |
$default | mixed | false | null | Value returned if the searched key isn't found. |
Source
function beans_post( $needle, $default = null ) {
return beans_get( $needle, $_POST, $default );
}