[ Index ] |
PHP Cross Reference of BuddyPress |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * The BuddyPress Plugin 5 * 6 * BuddyPress is social networking software with a twist from the creators of WordPress. 7 * 8 * @package BuddyPress 9 * @subpackage Main 10 */ 11 12 /** 13 * Plugin Name: BuddyPress 14 * Plugin URI: https://buddypress.org 15 * Description: BuddyPress adds community features to WordPress. Member Profiles, Activity Streams, Direct Messaging, Notifications, and more! 16 * Author: The BuddyPress Community 17 * Author URI: https://buddypress.org/ 18 * Version: 8.0.0-alpha 19 * Text Domain: buddypress 20 * Domain Path: /bp-languages/ 21 * License: GPLv2 or later (license.txt) 22 */ 23 24 // Exit if accessed directly 25 defined( 'ABSPATH' ) || exit; 26 27 // Assume you want to load from build 28 $bp_loader = dirname( __FILE__ ) . '/build/bp-loader.php'; 29 30 // Load from source if no build exists 31 if ( ! file_exists( $bp_loader ) || defined( 'BP_LOAD_SOURCE' ) ) { 32 $bp_loader = dirname( __FILE__ ) . '/src/bp-loader.php'; 33 $subdir = 'src'; 34 } else { 35 $subdir = 'build'; 36 } 37 38 // Set source subdirectory 39 define( 'BP_SOURCE_SUBDIRECTORY', $subdir ); 40 41 // Define overrides - only applicable to those running trunk 42 if ( ! defined( 'BP_PLUGIN_DIR' ) ) { 43 define( 'BP_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); 44 } 45 if ( ! defined( 'BP_PLUGIN_URL' ) ) { 46 // Be nice to symlinked directories 47 define( 'BP_PLUGIN_URL', plugins_url( trailingslashit( basename( constant( 'BP_PLUGIN_DIR' ) ) ) ) ); 48 } 49 50 // Include BuddyPress 51 include( $bp_loader ); 52 53 // Unset the loader, since it's loaded in global scope 54 unset( $bp_loader );
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Apr 18 01:01:43 2021 | Cross-referenced by PHPXref 0.7.1 |