bp_nouveau_search_selector_name( string $suffix = '', string $sep = '_' )
Output the name attribute of a selector.
Parameters Parameters
- $suffix
-
(string) (Optional) A string to append at the end of the name.
Default value: ''
- $sep
-
(string) (Optional) The separator to use between each token.
Default value: '_'
Return Return
(string) The name attribute of a selector.
Source 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 ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |