Simple (by no means complete) input sanitizer.
| since | 1.0.0 |
|---|---|
| package |
WordPress_Security_Txt |
| subpackage |
WordPress_Security_Txt/admin |
| author |
Austin Heap me@austinheap.com |
__construct( $plugin_name, $version, mixed $data = self::NO_VALUE_SET, string $type = self::NO_VALUE_SET)
mixed
string
clean() : mixed
mixedThe sanitized data
sanitize_phone(string $phone) : string|boolean
stringA phone number string
string|boolean$phone|FALSE Returns the valid phone number, FALSE if not
sanitize_random(mixed $input) : mixed
mixedData to be cleaned
mixed$return The cleaned data
sanitize_wrapper( $data, $function)
set_data(mixed $data)
mixedThe data to sanitize
set_type(string $type)
stringThe field type for this data
NO_VALUE_SET
plugin_name : string
| since | |
|---|---|
| access |
private |
| var |
The ID of this plugin. |
string
version : string
| since | |
|---|---|
| access |
private |
| var |
The current version of this plugin. |
string
data : mixed
| var |
|---|
mixed
type : string
| var |
|---|
string