[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-groups/screens/single/ -> activity-permalink.php (source)

   1  <?php
   2  /**
   3   * Groups: Single group activity permalink screen handler
   4   *
   5   * Note - This has never worked.
   6   * See {@link https://buddypress.trac.wordpress.org/ticket/2579}
   7   *
   8   * @package BuddyPress
   9   * @subpackage GroupsScreens
  10   * @since 3.0.0
  11   */
  12  
  13  /**
  14   * Handle the display of a single group activity item.
  15   *
  16   * @since 1.2.0
  17   */
  18  function groups_screen_group_activity_permalink() {
  19      if ( !bp_is_groups_component() || !bp_is_active( 'activity' ) || ( bp_is_active( 'activity' ) && !bp_is_current_action( bp_get_activity_slug() ) ) || !bp_action_variable( 0 ) )
  20          return false;
  21  
  22      buddypress()->is_single_item = true;
  23  
  24      /** This filter is documented in bp-groups/bp-groups-screens.php */
  25      bp_core_load_template( apply_filters( 'groups_template_group_home', 'groups/single/home' ) );
  26  }
  27  add_action( 'bp_screens', 'groups_screen_group_activity_permalink' );


Generated: Tue Mar 19 01:01:09 2024 Cross-referenced by PHPXref 0.7.1