option_values( $field ); foreach ( (array) $value as $v ) { if ( ! in_array( (string) $v, $allowed, true ) ) { return __( 'Choose from the listed options.', 'fillaro' ); } } return ''; } /** {@inheritdoc} */ public function to_text( $value, array $field ) { $labels = array(); foreach ( (array) $value as $v ) { $labels[] = $this->option_label( $field, $v ); } return implode( ', ', $labels ); } }