[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/ -> bp-loader.php (source)

   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:     5.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 );


Generated: Sat Dec 15 01:01:53 2018 Cross-referenced by PHPXref 0.7.1