bp_nouveau_sanitize_nav_order( string $option = '' )

Sanitize a list of slugs to save it as an array


Description Description


Parameters Parameters

$option

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

Default value: ''


Top ↑

Return Return

(array) An array of nav items slugs.


Top ↑

Source 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 );
}

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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