WordPress at Your Fingertips
function is not described

WC_Breadcrumb::search_trail() protected WC 1.0

Add a breadcrumb for search results.

{} It's a method of the class: WC_Breadcrumb{}

No Hooks.

Return

null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->search_trail();

Code of WC_Breadcrumb::search_trail() WC 5.8.0

protected function search_trail() {
	if ( is_search() ) {
		/* translators: %s: search term */
		$this->add_crumb( sprintf( __( 'Search results for “%s”', 'woocommerce' ), get_search_query() ), remove_query_arg( 'paged' ) );
	}
}