Set User Role based on age result from Facebook Log-In – WordPress
This assumes that what you said about only needing to check for the minimum value is true. These conditional statements work for this array. Facebook’s Min Age Array will be either 13, 18 or 21. $age_range = array( 13, 18, 21); // I don’t know what actual data you have here. if( min( $age_range ) … Read more