bp_nouveau_sanitize_nav_order( string $option = '' )

Sanitize a list of slugs to save it as an array

Description

Parameters

$option

(Optional) A comma separated list of nav items slugs.

Default value: ''

Return

(array) An array of nav items slugs.

Source

File: bp-templates/bp-nouveau/includes/functions.php

function bp_nouveau_sanitize_nav_order( $option = '' ) {
	$option = explode( ',', $option );
	return array_map( 'sanitize_key', $option );
}

Changelog

Changelog
Version Description
BuddyPress 3.0.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.