WC_Settings_API::validate_multiselect_field( string $key, string $value )

Validate Multiselect Field.


Description Description


Parameters Parameters

$key

(Required) Field key.

$value

(Required) Posted Value.


Top ↑

Return Return

(string|array)


Top ↑

Source Source

File: includes/abstracts/abstract-wc-settings-api.php

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

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.