MP_Settings::check_data( string|array|mixed $data, int|string|bool|callback $is_not_isset = '' )

Check is isset and not empty data.


Parameters Parameters

$data

(string|array|mixed) (Required) data.

$is_not_isset

(int|string|bool|callback) (Optional) resulf if not isset. Default ''.

Default value: ''


Top ↑

Return Return

(mixed)


Top ↑

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;

	}

Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0 Introduced.