BP_Media_Theme_Compat::is_media()

Set up the theme compatibility hooks, if we’re looking at an media page.

Description

Source

File: bp-media/classes/class-bp-media-theme-compat.php

36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
public function is_media() {
 
    // Bail if not looking at a group.
    if ( ! bp_is_media_component() )
        return;
 
    // Media Directory.
    if ( ! bp_displayed_user_id() && ! bp_current_action() ) {
        bp_update_is_directory( true, 'media' );
 
        /** This action is documented in bp-media/bp-media-screens.php */
        do_action( 'bp_media_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

Changelog
Version Description
BuddyBoss 1.0.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.