Tribe__Editor__Meta::sanitize_numeric_array( mixed $value )
Checks and sanitize a given value to a numeric array or a numeric string
Contents
Parameters
- $value
-
(mixed) (Required) Check agains this value
Return
(array|bool|int)
Source
File: src/Tribe/Editor/Meta.php
public function sanitize_numeric_array( $value ) {
if ( is_array( $value ) ) {
return wp_parse_id_list( $value );
} elseif ( is_numeric( $value ) ) {
return absint( $value );
} else {
return false;
}
}
Changelog
| Version | Description |
|---|---|
| 4.8 | Introduced. |