Browse: Home / Functions /

learndash_array_sanitize_keys_and_values

learndash_array_sanitize_keys_and_values( array $data_in = array() )

Used to sanitize array keys and values.


Description #

Would normally use various WP utility functions like wp_kses_post_deep() but they only sanitize the data element not the key. This function is recursive to handle nests arrays.


Parameters #

$data_in

(array) (Optional) Source array to clean.

Default value: array()


Source #

File: includes/ld-misc-functions.php


Changelog #

Changelog
Version Description
3.2.0 Introduced.