BP_Search_CPT::__construct( $cpt_name,  $search_type )

A real constructor. Since we do want multiple copies of this class.

Description

The idea is to have one object for each searchable custom post type.

Source

File: bp-search/plugins/search-cpt/class-bp-search-cpt.php

		public function __construct( $cpt_name, $search_type ) {
			$this->cpt_name = $cpt_name;
			$this->search_type =$search_type;

			add_action( "bp_search_settings_item_{$this->cpt_name}", array( $this, 'print_search_options' ) );
		}

Changelog

Changelog
Version Description
BuddyBoss 1.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.