wp_parse_list( array|string $list )

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


Description Description

As BuddyPress supports older WordPress versions than 5.1 (4.9 & 5.0), the BP REST API needs this function to be available.


Parameters Parameters

$list

(Required) List of values.


Top ↑

Return Return

(array) Sanitized array of values.


Top ↑

Source Source

File: bp-core/bp-core-wpabstraction.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
7.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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