bp_get_the_profile_field_is_required

  • apply_filters( 'bp_get_the_profile_field_is_required', (bool) $retval )

    Source Reference:

    • Component: BuddyPress :: bp-xprofile
      File: /bp-xprofile/bp-xprofile-template.php :: Trac Source Line: 661
      		// Super admins can skip required check
      		if ( is_super_admin() && !is_admin() )
      			$retval = false;
      
      		// All other users will use the field's setting
      		elseif ( isset( $field->is_required ) )
      			$retval = $field->is_required;
      
      		return apply_filters( 'bp_get_the_profile_field_is_required', (bool) $retval );
      	}
      
      function bp_unserialize_profile_field( $value ) {
      	if ( is_serialized($value) ) {
      		$field_value = maybe_unserialize($value);
      		$field_value = implode( ', ', $field_value );
      		return $field_value;
      	}
      
      	return $value;
      

Comments are closed.