WordPress at Your Fingertips
function is not described

WC_Settings_API::validate_multiselect_field() public WC 1.0

Validate Multiselect Field.

{} It's a method of the class: WC_Settings_API{}

No Hooks.

Return

String|Array.

Usage

$WC_Settings_API = new WC_Settings_API();
$WC_Settings_API->validate_multiselect_field( $key, $value );
$key(string) (required)
Field key.
$value(string) (required)
Posted Value.

Code of WC_Settings_API::validate_multiselect_field() WC 5.5.2

<?php
public function validate_multiselect_field( $key, $value ) {
	return is_array( $value ) ? array_map( 'wc_clean', array_map( 'stripslashes', $value ) ) : '';
}