[ 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   * Registers the Sitewide Notices Legacy Widget.
  15   *
  16   * @since 10.0.0
  17   */
  18  function bp_messages_register_sitewide_notices_widget() {
  19      register_widget( 'BP_Messages_Sitewide_Notices_Widget' );
  20  }
  21  
  22  /**
  23   * Register widgets for the Messages component.
  24   *
  25   * @since 1.9.0
  26   */
  27  function bp_messages_register_widgets() {
  28      add_action( 'widgets_init', 'bp_messages_register_sitewide_notices_widget' );
  29  }
  30  add_action( 'bp_register_widgets', 'bp_messages_register_widgets' );


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