bp_nouveau_search_selector_name( string $suffix = '', string $sep = '_' )
Output the name attribute of a selector.
Description
Parameters
- $suffix
-
(Optional) A string to append at the end of the name.
Default value: ''
- $sep
-
(Optional) The separator to use between each token.
Default value: '_'
Return
(string) The name attribute of a selector.
Source
File: bp-templates/bp-nouveau/includes/template-tags.php
function bp_nouveau_search_selector_name( $suffix = '', $sep = '_' ) { $objects = bp_nouveau_get_search_objects(); if ( isset( $objects['secondary'] ) && ! $suffix ) { $name = bp_core_get_component_search_query_arg( $objects['secondary'] ); } else { $name = join( $sep, array_merge( $objects, (array) $suffix ) ); } echo esc_attr( $name ); }
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.