[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-messages/ -> bp-messages-widgets.php (source)

   1  <?php
   2  /**
   3   * BuddyPress Messages Widgets.
   4   *
   5   * @package BuddyPress
   6   * @subpackage MessagesWidgets
   7   * @since 1.9.0
   8   */
   9  
  10  // Exit if accessed directly.
  11  defined( 'ABSPATH' ) || exit;
  12  
  13  /**
  14   * Register widgets for the Messages component.
  15   *
  16   * @since 1.9.0
  17   */
  18  function bp_messages_register_widgets() {
  19      add_action(
  20          'widgets_init',
  21          function() {
  22              register_widget( 'BP_Messages_Sitewide_Notices_Widget' );
  23          }
  24      );
  25  }
  26  add_action( 'bp_register_widgets', 'bp_messages_register_widgets' );


Generated: Fri Sep 24 01:01:36 2021 Cross-referenced by PHPXref 0.7.1