dozent_sanitize_array( $arr )
sanitize array by wp_kses_post
Description
See also
Parameters
- $arr
-
(Required)
Return
(array)
Source
File: includes/form-functions.php
function dozent_sanitize_array( $arr ) { if ( is_array( $arr ) && count( $arr ) ) { foreach ( $arr as $key => $value ) { if ( is_array( $value ) ) { $arr[ $key ] = dozent_sanitize_array( $value ); } else { $arr[ $key ] = dozent_sanitize_html( $value ); } } } return $arr; }
Changelog
Version | Description |
---|---|
DozentLMS 1.0.0 | Introduced. |