[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * Messages: User's "Messages > Compose" screen handler.
   4   *
   5   * @package BuddyPress
   6   * @subpackage MessageScreens
   7   * @since 3.0.0
   8   */
   9  
  10  /**
  11   * Load the Messages > Compose screen.
  12   *
  13   * @since 1.0.0
  14   */
  15  function messages_screen_compose() {
  16  
  17      if ( bp_action_variables() ) {
  18          bp_do_404();
  19          return;
  20      }
  21  
  22      // Remove any saved message data from a previous session.
  23      messages_remove_callback_values();
  24  
  25      /**
  26       * Fires right before the loading of the Messages compose screen template file.
  27       *
  28       * @since 1.0.0
  29       */
  30      do_action( 'messages_screen_compose' );
  31  
  32      /**
  33       * Filters the template to load for the Messages compose screen.
  34       *
  35       * @since 1.0.0
  36       *
  37       * @param string $template Path to the messages template to load.
  38       */
  39      bp_core_load_template( apply_filters( 'messages_template_compose', 'members/single/home' ) );
  40  }


Generated: Fri Nov 22 01:00:56 2024 Cross-referenced by PHPXref 0.7.1