[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * Blogs: Directory screen handler
   4   *
   5   * @package BuddyPress
   6   * @subpackage BlogsScreens
   7   * @since 3.0.0
   8   */
   9  
  10  /**
  11   * Load the top-level Blogs directory.
  12   *
  13   * @since 1.5-beta-1
  14   */
  15  function bp_blogs_screen_index() {
  16      if ( bp_is_blogs_directory() ) {
  17          bp_update_is_directory( true, 'blogs' );
  18  
  19          /**
  20           * Fires right before the loading of the top-level Blogs screen template file.
  21           *
  22           * @since 1.0.0
  23           */
  24          do_action( 'bp_blogs_screen_index' );
  25  
  26          bp_core_load_template( apply_filters( 'bp_blogs_screen_index', 'blogs/index' ) );
  27      }
  28  }
  29  add_action( 'bp_screens', 'bp_blogs_screen_index', 2 );


Generated: Wed Apr 21 01:01:43 2021 Cross-referenced by PHPXref 0.7.1