Bp_Search_Posts::__construct( $pt_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/classes/class-bp-search-posts.php
public function __construct( $pt_name, $search_type ) { $this->pt_name = $pt_name; $this->search_type =$search_type; add_action( "bp_search_settings_item_{$this->search_type}", array( $this, 'print_search_options' ) ); }
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.