[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-blogs/classes/ -> class-bp-blogs-component.php (summary)

BuddyPress Blogs Loader The blogs component tracks posts and comments to member activity streams, shows blogs the member can post to in their profiles, and caches useful information from those blogs to make querying blogs in bulk more performant.

File Size: 454 lines (12 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

BP_Blogs_Component:: (11 methods):
  __construct()
  setup_globals()
  includes()
  late_includes()
  setup_nav()
  setup_admin_bar()
  setup_title()
  setup_cache_groups()
  rest_api_init()
  blocks_init()
  admin_directory_states()


Class: BP_Blogs_Component  - X-Ref

Creates our Blogs component.

__construct()   X-Ref
Start the blogs component creation process.

since: 1.5.0

setup_globals( $args = array()   X-Ref
Set up global settings for the blogs component.

The BP_BLOGS_SLUG constant is deprecated, and only used here for
backwards compatibility.

param: array $args See {@link BP_Component::setup_globals()}.
since: 1.5.0

includes( $includes = array()   X-Ref
Include bp-blogs files.

param: array $includes See {@link BP_Component::includes()}.

late_includes()   X-Ref
Late includes method.

Only load up certain code when on specific pages.

since: 3.0.0

setup_nav( $main_nav = array()   X-Ref
Set up component navigation for bp-blogs.

param: array $main_nav Optional. See BP_Component::setup_nav() for
param: array $sub_nav  Optional. See BP_Component::setup_nav() for

setup_admin_bar( $wp_admin_nav = array()   X-Ref
Set up bp-blogs integration with the WordPress admin bar.

param: array $wp_admin_nav See BP_Component::setup_admin_bar()
return: bool
since: 1.5.0

setup_title()   X-Ref
Set up the title for pages and <title>.


setup_cache_groups()   X-Ref
Setup cache groups

since: 2.2.0

rest_api_init( $controllers = array()   X-Ref
Init the BP REST API.

param: array $controllers Optional. See BP_Component::rest_api_init() for
since: 6.0.0

blocks_init( $blocks = array()   X-Ref
Register the BP Blogs Blocks.

param: array $blocks Optional. See BP_Component::blocks_init() for
since: 9.0.0

admin_directory_states( $states = array()   X-Ref
Add the Sites directory states.

param: array   $states Optional. See BP_Component::admin_directory_states() for description.
param: WP_Post $post   Optional. See BP_Component::admin_directory_states() for description.
return: array          See BP_Component::admin_directory_states() for description.
since: 10.0.0



Generated: Tue Mar 19 01:01:09 2024 Cross-referenced by PHPXref 0.7.1