/** class constructor * * @param string $options_id * */ public function __construct($options_id) { parent::__construct($options_id); $this->debug = defined('URE_DEBUG') && (URE_DEBUG == 1 || URE_DEBUG == true); $this->bbpress = URE_bbPress::get_instance($this); $this->upgrade(); }
public static function get_instance(Ure_Lib $lib) { if (!function_exists('bbp_filter_blog_editable_roles')) { // bbPress plugin is not active return null; } if (self::$instance !== null) { return self::$instance; } if ($lib->is_pro()) { self::$instance = new URE_bbPress_Pro($lib); } else { self::$instance = new URE_bbPress($lib); } return self::$instance; }