noptin_clean( string|array|object $var )

Cleans all non-iterable elements of an array or an object.


Parameters Parameters

$var

(string|array|object) (Required) Data to sanitize.


Top ↑

Return Return

(string|array)


Top ↑

Source Source

File: includes/functions.php

function noptin_clean( $var ) {
	return map_deep( $var, 'sanitize_text_field' );
}


Top ↑

Changelog Changelog

Changelog
VersionDescription
1.2.3Introduced.

Top ↑

User Contributed Notes User Contributed Notes

30 day money back guarantee
Safe & Secure online payment
Custom CSS Slide Example
Custom Animation Example
Default Animation