File: //proc/self/root/home/dfwparty/dfwchat.net/wp-content/plugins/buddyboss-tools/buddyboss-tools.php
<?php
/**
* Plugin Name: BuddyBoss Tools
* Plugin URI: https://www.buddyboss.com/
* Description: Repair and re-sync specific site functions, migrations and import default data to help you build and maintain your site.
* Author: BuddyBoss
* Author URI: https://www.buddyboss.com/
* Version: 1.0.0
* Text Domain: buddyboss-tools
* Domain Path: /languages
* Requires at least: 5.0
* Requires PHP: 7.4
* Requires Plugins: buddyboss-platform
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
*
* @package BuddyBoss\Tools
*/
defined( 'ABSPATH' ) || exit;
define( 'BB_TOOLS_PLUGIN_FILE', __FILE__ );
define( 'BB_TOOLS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( 'BB_TOOLS_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'BB_TOOLS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
define( 'BB_TOOLS_VERSION', '1.0.0' );
require_once BB_TOOLS_PLUGIN_DIR . 'includes/class-bb-tools.php';
/*
* Boot on `plugins_loaded @ 10` and retry on `bp_loaded`. Under
* BUDDYPRESS_LATE_LOAD, Platform can load AFTER Tools, so the first attempt's
* requirements check would fail permanently. `bp_loaded` fires after Platform
* is fully up, giving a second chance. `BB_Tools::boot()` is idempotent — it
* only marks itself booted once the requirements probe passes, so the retry is
* a no-op after a successful boot and never double-initializes.
*/
$bb_tools_boot = static function () {
BB_Tools::instance()->boot();
};
add_action( 'plugins_loaded', $bb_tools_boot, 10 );
add_action( 'bp_loaded', $bb_tools_boot, 10 );