1115 | | * @return true|WP_Error |
| 1115 | * @return int|float|string|array|boolean|mixed Based on the `$args`'s type property, returns `$value`'s type. |
| 1116 | * If `$args['type']` is an integer the return value is an int |
| 1117 | * If `$args['type']` is an number the return value is an float |
| 1118 | * If `$args['type']` is an string the return value is an float |
| 1119 | * If `$args['type']` is an array the return value is an array |
| 1120 | * If `$args['type']` is an array the return value is an array |
| 1121 | * If `$args['type']` is not neither of these above, then `$args['format']` is looked upon and the return value is a string |
| 1122 | * If `$args['type']` is not neither of these above and then `$args['format']` is not defined, then the original `$value`is returned |