[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-activity/screens/ -> favorites.php (source)

   1  <?php
   2  /**
   3   * Activity: User's "Activity > Favorites" screen handler
   4   *
   5   * @package BuddyPress
   6   * @subpackage ActivityScreens
   7   * @since 3.0.0
   8   */
   9  
  10  /**
  11   * Load the 'Favorites' activity page.
  12   *
  13   * @since 1.2.0
  14   */
  15  function bp_activity_screen_favorites() {
  16      bp_update_is_item_admin( bp_current_user_can( 'bp_moderate' ), 'activity' );
  17  
  18      /**
  19       * Fires right before the loading of the "Favorites" screen template file.
  20       *
  21       * @since 1.2.0
  22       */
  23      do_action( 'bp_activity_screen_favorites' );
  24  
  25      /**
  26       * Filters the template to load for the "Favorites" screen.
  27       *
  28       * @since 1.2.0
  29       *
  30       * @param string $template Path to the activity template to load.
  31       */
  32      bp_core_load_template( apply_filters( 'bp_activity_template_favorite_activity', 'members/single/home' ) );
  33  }


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