BP_Blogs_Theme_Compat::is_blogs()
Are we looking at something that needs Blogs theme compatibility?
Description Description
Source Source
File: bp-blogs/classes/class-bp-blogs-theme-compat.php
public function is_blogs() { // Bail if not looking at a group. if ( ! bp_is_blogs_component() ) return; // Bail if looking at a users sites. if ( bp_is_user() ) return; // Blog Directory. if ( is_multisite() && ! bp_current_action() ) { bp_update_is_directory( true, 'blogs' ); /** * Fires if in the blog directory and BuddyPress needs Blog theme compatibility, * before the actions and filters are added. * * @since 1.5.0 */ do_action( 'bp_blogs_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' ) ); // Create blog. } elseif ( is_user_logged_in() && bp_blog_signup_enabled() ) { add_filter( 'bp_get_buddypress_template', array( $this, 'create_template_hierarchy' ) ); add_action( 'bp_template_include_reset_dummy_post_data', array( $this, 'create_dummy_post' ) ); add_filter( 'bp_replace_the_content', array( $this, 'create_content' ) ); } }
Changelog Changelog
Version | Description |
---|---|
1.7.0 | Introduced. |