bp_nouveau_search_default_text( string $text = '', string $is_attr = true )

Output the default search text for the search object

Description

Parameters

$text

(string) (Optional) The default search text for the search object.

Default value: ''

$is_attr

(string) (Optional) True if it's to be output inside an attribute. False Otherwise.

Default value: true

Return

(string) The default search text.

Source

File: bp-templates/bp-nouveau/includes/template-tags.php

function bp_nouveau_search_default_text( $text = '', $is_attr = true ) {
	$objects = bp_nouveau_get_search_objects();

	if ( ! empty( $objects['secondary'] ) && empty( $text ) ) {
		$text = bp_get_search_default_text( $objects['secondary'] );
	}

	if ( $is_attr ) {
		echo esc_attr( $text );
	} else {
		echo esc_html( $text );
	}
}

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.