noptin_parse_list( array|string $list )

Cleans up an array, comma- or space-separated list of scalar values.

Parameters Parameters


(array|string) (Required) List of values.

Top ↑

Return Return

(array) Sanitized array of values.

Top ↑

Source Source

File: includes/functions.php

function noptin_parse_list( $list ) {
	if ( ! is_array( $list ) ) {
		return preg_split( '/[\s,]+/', $list, -1, PREG_SPLIT_NO_EMPTY );

	return $list;

Top ↑

Changelog Changelog


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