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

1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
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

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.