learndash_array_sanitize_keys_and_values( array $data_in = array() )

Used to sanitize array keys and values.


Description 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 Parameters

$data_in

(Optional) Source array to clean.

Default value: array()


Top ↑

Source Source

File: includes/ld-misc-functions.php


			

Top ↑

User Contributed Notes User Contributed Notes

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