acf_not_empty()
Returns true if the value provided is considered "not empty". Allows numbers such as 0.
No Hooks.
Returns
true|false.
Usage
acf_not_empty( $var );
- $var(mixed) (required)
- The value to check.
Changelog
| Since 5.8.1 | Introduced. |
acf_not_empty() acf not empty code ACF 6.8.8
function acf_not_empty( $var ) {
return ( $var || is_numeric( $var ) );
}