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: '_'


Top ↑

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


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.