| Server IP : 145.239.37.162 / Your IP : 216.73.217.126 Web Server : Apache System : Linux webm003.cluster130.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : verseaa ( 38250) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/v/e/r/verseaa/www1/wp-content/plugins/transpix-common/meta-box/inc/helpers/ |
Upload File : |
<?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 && array() !== $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;
}
}