bp_nouveau_sanitize_nav_hide( 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_hide( $option = '' ) { if ( ! is_array( $option ) ) { $option = explode( ',', $option ); } return array_map( 'sanitize_key', $option ); }
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.