MP_Settings::check_data( string|array|mixed $data, int|string|bool|callback $is_not_isset = '' )
Check is isset and not empty data.
Contents
Parameters Parameters
- $data
-
(string|array|mixed) (Required) data.
- $is_not_isset
-
(int|string|bool|callback) (Optional) resulf if not isset. Default ''.
Default value: ''
Return Return
(mixed)
Source Source
File: mortgage-platform/Inc/Base/MP_Settings.php
public static function check_data( $data, $is_not_isset = '' ) {
if ( isset( $data ) && ! empty( $data ) ) {
return $data;
}
return $is_not_isset;
}
Changelog Changelog
| Version | Description |
|---|---|
| 1.0.0 | Introduced. |