[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-groups/ -> bp-groups-loader.php (source)

   1  <?php
   2  /**
   3   * BuddyPress Groups Loader.
   4   *
   5   * A groups component, for users to group themselves together. Includes a
   6   * robust sub-component API that allows Groups to be extended.
   7   * Comes preconfigured with an activity stream, discussion forums, and settings.
   8   *
   9   * @package BuddyPress
  10   * @subpackage GroupsLoader
  11   * @since 1.5.0
  12   */
  13  
  14  // Exit if accessed directly.
  15  defined( 'ABSPATH' ) || exit;
  16  
  17  /**
  18   * Set up the bp-groups component.
  19   *
  20   * @since 1.5.0
  21   */
  22  function bp_setup_groups() {
  23      buddypress()->groups = new BP_Groups_Component();
  24  }
  25  add_action( 'bp_setup_components', 'bp_setup_groups', 6 );


Generated: Sun Dec 22 01:00:54 2024 Cross-referenced by PHPXref 0.7.1