Bp_Search_Type::get_html( int $itemid, string $template_type = '' )

Get the html for given search result.

Description

Parameters

$itemid

(int) (Required)

$template_type

(string) (Optional)

Default value: ''

Return

(string)

Source

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

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

			return isset( $this->search_results['items'][$itemid] ) ? @$this->search_results['items'][$itemid]['html'] : '';
		}

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.