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
mixed
The sanitized data
sanitize_phone(string $phone) : string|boolean
string
A phone number string
string|boolean
$phone|FALSE Returns the valid phone number, FALSE if not
sanitize_random(mixed $input) : mixed
mixed
Data to be cleaned
mixed
$return The cleaned data
sanitize_wrapper( $data, $function)
set_data(mixed $data)
mixed
The data to sanitize
set_type(string $type)
string
The 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