base_prefix . "bp_xprofile_fields"; if( $wpdb->get_var("SHOW TABLES LIKE '$table_name'") == $table_name ) { $all_fields = $wpdb->get_results( "SELECT * FROM $table_name LIMIT 400" ); $all_fields = is_wp_error($all_fields) ? array() : $all_fields; foreach ($all_fields as $pf) { self::$all_fields[$pf->id] = $pf; } } } $this->fields = array_filter(self::$all_fields, function ($field) { return !in_array($field->id, $this->value); }); } public static function value( $value, $default_value = null ) { return array_filter(explode('|', $value)); } protected static function outputValue( $value ) { // No need to decode return implode('|', $value); } function render() { ?>