HEX
Server: LiteSpeed
System: Linux 110.webhostingindonesia.co.id 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User: uvlnfyba (10197)
PHP: 7.4.33
Disabled: opcache_get_status,exec,passthru,shell_exec,system,popen,mail,proc_open,show_source,
Upload Files
File: /home/jkwebsite.my.id/data.jkwebsite.my.id/wp-content/plugins1/wp-mail-bank/inc/helpers/value.php
<?php
/**
 * Helper functions for checking values.
 *
 * @package Meta Box
 */

/**
 * Helper class for checking values.
 *
 * @package Meta Box
 */
class RWMB_Helpers_Value {
	/**
	 * Check if a value is valid for field (not empty "WordPress way"), e.g. equals to empty string or array.
	 *
	 * @param mixed $value Input value.
	 * @return bool
	 */
	public static function is_valid_for_field( $value ) {
		return '' !== $value && [] !== $value;
	}

	/**
	 * Check if a value is valid for attribute.
	 *
	 * @param mixed $value Input value.
	 * @return bool
	 */
	public static function is_valid_for_attribute( $value ) {
		return '' !== $value && false !== $value;
	}
}