Submit
Path:
~
/
home
/
contenidosenred
/
www
/
ondemand
/
wp-content
/
plugins
/
meta-box
/
inc
/
helpers
/
File Content:
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 && 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; } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
INFO
Name
Size
Permission
Action
array.php
1837 bytes
0644
field.php
1471 bytes
0644
string.php
447 bytes
0644
value.php
677 bytes
0644
N4ST4R_ID | Naxtarrr