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

Output the default search text for the search object


Parameters 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


Top ↑

Return Return

(string) The default search text.


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


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.