Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /** Fix Jeg Elementor Kit cannot create templates, due to conflict with JNews Essential */
- if ( ! function_exists( 'jeg_sanitize_array' ) ) {
- /**
- * Sanitizing Array recursively
- *
- * @param array $data The data to be sanitized.
- *
- * @return array sanitized array
- */
- function jeg_sanitize_array( $data ) {
- if ( is_array( $data ) ) {
- foreach ( $data as $key => $value ) {
- $data[ $key ] = jeg_sanitize_array( $value );
- }
- return $data;
- }
- return sanitize_text_field( $data );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement