WC_API_Server::urldecode_deep()protectedWC 2.2

urldecode deep.

Method of the class: WC_API_Server{}

No Hooks.

Return

String|Array. Decoded data.

Usage

// protected - for code of main (parent) or child class
$result = $this->urldecode_deep( $value );
$value(string|array) (required)
Data to decode with urldecode.

Changelog

Since 2.2 Introduced.

WC_API_Server::urldecode_deep() code WC 8.9.0

protected function urldecode_deep( $value ) {
	if ( is_array( $value ) ) {
		return array_map( array( $this, 'urldecode_deep' ), $value );
	} else {
		return urldecode( $value );
	}
}