This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

BuddyPress::includes()

Include required files.

Description

Source

File: class-buddypress.php

	private function includes() {
		spl_autoload_register( array( $this, 'autoload' ) );


		require( $this->plugin_dir . '/bp-help/bp-incompatible_plugins-helper.php' );

		// Load the WP abstraction file so BuddyPress can run on all WordPress setups.
		require( $this->plugin_dir . 'bp-core/bp-core-wpabstraction.php' );

		// Setup the versions (after we include multisite abstraction above)
		$this->versions();

		/** Update/Install ****************************************************/

		// Theme compatibility
		require( $this->plugin_dir . 'bp-core/bp-core-template-loader.php'     );
		require( $this->plugin_dir . 'bp-core/bp-core-theme-compatibility.php' );

		// Require all of the BuddyPress core libraries
		require( $this->plugin_dir . 'bp-core/bp-core-dependency.php'       );
		require( $this->plugin_dir . 'bp-core/bp-core-actions.php'          );
		require( $this->plugin_dir . 'bp-core/bp-core-caps.php'             );
		require( $this->plugin_dir . 'bp-core/bp-core-cache.php'            );
		require( $this->plugin_dir . 'bp-core/bp-core-cssjs.php'            );
		require( $this->plugin_dir . 'bp-core/bp-core-update.php'           );
		require( $this->plugin_dir . 'bp-core/bp-core-options.php'          );
		require( $this->plugin_dir . 'bp-core/bp-core-taxonomy.php'         );
		require( $this->plugin_dir . 'bp-core/bp-core-filters.php'          );
		require( $this->plugin_dir . 'bp-core/bp-core-attachments.php'      );
		require( $this->plugin_dir . 'bp-core/bp-core-avatars.php'          );
		require( $this->plugin_dir . 'bp-core/bp-core-widgets.php'          );
		require( $this->plugin_dir . 'bp-core/bp-core-template.php'         );
		require( $this->plugin_dir . 'bp-core/bp-core-adminbar.php'         );
		require( $this->plugin_dir . 'bp-core/bp-core-buddybar.php'         );
		require( $this->plugin_dir . 'bp-core/bp-core-catchuri.php'         );
		require( $this->plugin_dir . 'bp-core/bp-core-functions.php'        );
		require( $this->plugin_dir . 'bp-core/bp-core-moderation.php'       );
		require( $this->plugin_dir . 'bp-core/bp-core-loader.php'           );
		require( $this->plugin_dir . 'bp-core/bp-core-customizer-email.php' );
		require( $this->plugin_dir . 'bp-core/bp-core-emails.php'           );
		require( $this->plugin_dir . 'bp-core/bp-core-wp-emails.php'        );
		require( $this->plugin_dir . 'bp-core/bp-core-learndash-emails.php' );
		require( $this->plugin_dir . 'bp-core/bp-core-profile-search.php'   );
		require( $this->plugin_dir . 'bp-core/bp-core-gdpr.php'             );
		require( $this->plugin_dir . 'bp-core/bp-core-help.php'   );

		// Maybe load deprecated buddypress functionality (this double negative is proof positive!)
		if ( ! bp_get_option( '_bp_ignore_deprecated_code', ! $this->load_deprecated ) ) {
			require( $this->plugin_dir . 'bp-core/deprecated/buddypress/1.2.php' );
			require( $this->plugin_dir . 'bp-core/deprecated/buddypress/1.5.php' );
			require( $this->plugin_dir . 'bp-core/deprecated/buddypress/1.6.php' );
			require( $this->plugin_dir . 'bp-core/deprecated/buddypress/1.7.php' );
			require( $this->plugin_dir . 'bp-core/deprecated/buddypress/1.9.php' );
			require( $this->plugin_dir . 'bp-core/deprecated/buddypress/2.0.php' );
			require( $this->plugin_dir . 'bp-core/deprecated/buddypress/2.1.php' );
			require( $this->plugin_dir . 'bp-core/deprecated/buddypress/2.2.php' );
			require( $this->plugin_dir . 'bp-core/deprecated/buddypress/2.3.php' );
			require( $this->plugin_dir . 'bp-core/deprecated/buddypress/2.4.php' );
			require( $this->plugin_dir . 'bp-core/deprecated/buddypress/2.5.php' );
			require( $this->plugin_dir . 'bp-core/deprecated/buddypress/2.6.php' );
			require( $this->plugin_dir . 'bp-core/deprecated/buddypress/2.7.php' );
			require( $this->plugin_dir . 'bp-core/deprecated/buddypress/2.8.php' );
			require( $this->plugin_dir . 'bp-core/deprecated/buddypress/2.9.php' );
			require( $this->plugin_dir . 'bp-core/deprecated/buddypress/3.0.php' );
		}

		// Maybe load deprecated buddyboss functionality (this double negative is proof positive!)
		if ( ! bp_get_option( '_bb_ignore_deprecated_code', ! $this->load_deprecated ) ) {
			require( $this->plugin_dir . 'bp-core/deprecated/buddyboss/1.0.php' );
		}

		if ( defined( 'WP_CLI' ) && file_exists( $this->plugin_dir . 'cli/wp-cli-bp.php' ) ) {
			require( $this->plugin_dir . 'cli/wp-cli-bp.php' );
		}
	}

Changelog

Changelog
Version Description
BuddyPress 1.6.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.