[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * Activity: Directory screen handler
   4   *
   5   * @package BuddyPress
   6   * @subpackage ActivityScreens
   7   * @since 3.0.0
   8   */
   9  
  10  /**
  11   * Load the Activity directory.
  12   *
  13   * @since 1.5.0
  14   *
  15   */
  16  function bp_activity_screen_index() {
  17      if ( bp_is_activity_directory() ) {
  18          bp_update_is_directory( true, 'activity' );
  19  
  20          /**
  21           * Fires right before the loading of the Activity directory screen template file.
  22           *
  23           * @since 1.5.0
  24           */
  25          do_action( 'bp_activity_screen_index' );
  26  
  27          /**
  28           * Filters the template to load for the Activity directory screen.
  29           *
  30           * @since 1.5.0
  31           *
  32           * @param string $template Path to the activity template to load.
  33           */
  34          bp_core_load_template( apply_filters( 'bp_activity_screen_index', 'activity/index' ) );
  35      }
  36  }
  37  add_action( 'bp_screens', 'bp_activity_screen_index' );


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