BP_XProfile_Field_Type_Member_Types::is_valid( int $values )
Check if valid.
Description
Parameters
- $values
-
(Required) post id.
Return
(bool)
Source
File: bp-xprofile/classes/class-bp-xprofile-field-type-member-types.php
public function is_valid( $values ) { return empty( $values ) || get_post( $values ); }
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.