/** * Admin singleton * * @since 1.0.0 * * @param array $options [description] * * @uses BuddyBoss_Global_Search_Admin::setup() Init admin class * * @return object BuddyBoss_Global_Search_Admin */ public static function instance() { static $instance = null; if (null === $instance) { $instance = new BuddyBoss_Global_Search_Admin(); $instance->setup(); } return $instance; }
/** * Include required admin files. * * @since 1.0.0 * @access private * * @uses $this->do_includes() Loads array of files in the include folder */ private function load_admin() { $this->do_includes($this->admin_includes); $this->admin = BuddyBoss_Global_Search_Admin::instance(); }