Browse: Home / Functions /

learndash_array_map_r

learndash_array_map_r( callable $func,  array $arr )

Utility function to traverse the multidimensional array and apply user function.


Description #


Parameters #

$func

(callable) (Required) The Callable user defined or system function. This should be 'esc_attr', or some similar function.

$arr

(array) (Required) The array to traverse and cleanup.


Return #

(array) $arr The cleaned array after calling user functions.


Source #

File: includes/ld-misc-functions.php


Changelog #

Changelog
Version Description
2.1.2 Introduced.