HEX
Server: LiteSpeed
System: Linux node612.namehero.net 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
User: dfwparty (1186)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //home/dfwparty/dfwchat.net/wp-content/plugins/buddyboss-platform/bp-document/screens/directory.php
<?php
/**
 * Document: Directory screen handler
 *
 * @package BuddyBoss\Document\Screens
 * @since BuddyBoss 1.4.0
 */

/**
 * Load the Document directory.
 *
 * @since BuddyBoss 1.4.0
 */
function bp_document_screen_index() {
	if ( bp_is_document_directory() ) {
		bp_update_is_directory( true, 'document' );

		/**
		 * Fires right before the loading of the Document directory screen template file.
		 *
		 * @since BuddyBoss 1.4.0
		 */
		do_action( 'bp_document_screen_index' );

		/**
		 * Filters the template to load for the Document directory screen.
		 *
		 * @since BuddyBoss 1.4.0
		 *
		 * @param string $template Path to the document template to load.
		 */
		bp_core_load_template( apply_filters( 'bp_document_screen_index', 'folder/index' ) );
	}
}
add_action( 'bp_screens', 'bp_document_screen_index' );