Tribe__Validator__Base::is_user_id( mixed $value )
Whether the value corresponds to an existing user ID or not.
Contents
Parameters
- $value
-
(mixed) (Required)
Return
(bool)
Source
File: src/Tribe/Validator/Base.php
public function is_user_id( $value ) {
return is_numeric( $value ) && (bool) get_user_by( 'ID', $value );
}