BP_Document_Theme_Compat::is_document()
Set up the theme compatibility hooks, if we’re looking at an document page.
Description
Source
File: bp-document/classes/class-bp-document-theme-compat.php
public function is_document() { // Bail if not looking at a group. if ( ! bp_is_document_component() ) { return; } // Document Directory. if ( ! bp_displayed_user_id() && ! bp_current_action() && 'document' === bp_current_component() ) { bp_update_is_directory( true, 'document' ); /** This action is documented in bp-document/bp-document-screens.php */ do_action( 'bp_document_screen_index' ); add_filter( 'bp_get_buddypress_template', array( $this, 'directory_template_hierarchy' ) ); add_action( 'bp_template_include_reset_dummy_post_data', array( $this, 'directory_dummy_post' ) ); add_filter( 'bp_replace_the_content', array( $this, 'directory_content' ) ); } }
Changelog
Version | Description |
---|---|
BuddyBoss 1.4.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.