WooCommerce Code Reference

SanitizationUtils
in package

SanitizationUtils class.

Helper class which sanitizes customer info.

Table of Contents

wp_kses_array()  : mixed
Runs wp_kses on an array. This function runs wp_kses on strings in the array and recurses into arrays.

Methods

wp_kses_array()

Runs wp_kses on an array. This function runs wp_kses on strings in the array and recurses into arrays.

public wp_kses_array(array<string|int, mixed> $array) : mixed
Parameters
$array : array<string|int, mixed>

The array to run wp_kses on.

Return values
mixedThe array, all string keys will have been run through wp_kses.