[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-messages/screens/ -> starred.php (source)

   1  <?php
   2  /**
   3   * Messages: User's "Messages > Starred" screen handler.
   4   *
   5   * @package BuddyPress
   6   * @subpackage MessageScreens
   7   * @since 3.0.0
   8   */
   9  
  10  /**
  11   * Screen handler to display a user's "Starred" private messages page.
  12   *
  13   * @since 2.3.0
  14   */
  15  function bp_messages_star_screen() {
  16      add_action( 'bp_template_content', 'bp_messages_star_content' );
  17  
  18      /**
  19       * Fires right before the loading of the "Starred" messages box.
  20       *
  21       * @since 2.3.0
  22       */
  23      do_action( 'bp_messages_screen_star' );
  24  
  25      bp_core_load_template( 'members/single/plugins' );
  26  }
  27  
  28  /**
  29   * Screen content callback to display a user's "Starred" messages page.
  30   *
  31   * @since 2.3.0
  32   */
  33  function bp_messages_star_content() {
  34      // Add our message thread filter.
  35      add_filter( 'bp_after_has_message_threads_parse_args', 'bp_messages_filter_starred_message_threads' );
  36  
  37      // Load the message loop template part.
  38      bp_get_template_part( 'members/single/messages/messages-loop' );
  39  
  40      // Remove our filter.
  41      remove_filter( 'bp_after_has_message_threads_parse_args', 'bp_messages_filter_starred_message_threads' );
  42  }


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