Contents

Bp_Search_Type::get_title( $item_id )

Description

Source

File: bp-search/classes/class-bp-search-types.php

		public function get_title( $item_id ){
			if( !$this->search_results['html_generated'] ){
				$this->generate_html();
				$this->search_results['html_generated'] = true;//do once only
			}

			return isset( $this->search_results['items'][$item_id]['title'] ) ? $this->search_results['items'][$item_id]['title'] : $this->search_term;
		}

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.