[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * BuddyPress Member Notifications Loader.
   4   *
   5   * Initializes the Notifications component.
   6   *
   7   * @package BuddyPress
   8   * @subpackage NotificationsLoader
   9   * @since 1.9.0
  10   */
  11  
  12  // Exit if accessed directly.
  13  defined( 'ABSPATH' ) || exit;
  14  
  15  /**
  16   * Set up the bp-notifications component.
  17   *
  18   * @since 1.9.0
  19   */
  20  function bp_setup_notifications() {
  21      buddypress()->notifications = new BP_Notifications_Component();
  22  }
  23  add_action( 'bp_setup_components', 'bp_setup_notifications', 6 );


Generated: Thu Nov 21 01:00:57 2024 Cross-referenced by PHPXref 0.7.1