[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-groups/classes/ -> class-bp-groups-theme-compat.php (summary)

BuddyPress Groups Theme Compat.

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

Defines 1 class

BP_Groups_Theme_Compat:: (11 methods):
  __construct()
  is_group()
  directory_template_hierarchy()
  directory_dummy_post()
  directory_content()
  create_template_hierarchy()
  create_dummy_post()
  create_content()
  single_template_hierarchy()
  single_dummy_post()
  single_content()


Class: BP_Groups_Theme_Compat  - X-Ref

The main theme compat class for BuddyPress Groups.

This class sets up the necessary theme compatibility actions to safely output
group template parts to the_title and the_content areas of a theme.

__construct()   X-Ref
Set up theme compatibility for the Groups component.

since: 1.7.0

is_group()   X-Ref
Are we looking at something that needs group theme compatibility?

since: 1.7.0

directory_template_hierarchy( $templates )   X-Ref
Add template hierarchy to theme compat for the group directory page.

This is to mirror how WordPress has
{@link https://codex.wordpress.org/Template_Hierarchy template hierarchy}.

since: 1.8.0
return: array $templates Array of custom templates to look for.
param: string $templates The templates from bp_get_theme_compat_templates().

directory_dummy_post()   X-Ref
Update the global $post with directory data.

since: 1.7.0

directory_content()   X-Ref
Filter the_content with the groups index template part.

since: 1.7.0

create_template_hierarchy( $templates )   X-Ref
Add custom template hierarchy to theme compat for the group create page.

This is to mirror how WordPress has
{@link https://codex.wordpress.org/Template_Hierarchy template hierarchy}.

since: 1.8.0
return: array $templates Array of custom templates to look for.
param: string $templates The templates from bp_get_theme_compat_templates().

create_dummy_post()   X-Ref
Update the global $post with create screen data.

since: 1.7.0

create_content()   X-Ref
Filter the_content with the create screen template part.

since: 1.7.0

single_template_hierarchy( $templates )   X-Ref
Add custom template hierarchy to theme compat for group pages.

This is to mirror how WordPress has
{@link https://codex.wordpress.org/Template_Hierarchy template hierarchy}.

since: 1.8.0
return: array $templates Array of custom templates to look for.
param: string $templates The templates from bp_get_theme_compat_templates().

single_dummy_post()   X-Ref
Update the global $post with single group data.

since: 1.7.0

single_content()   X-Ref
Filter the_content with the single group template part.

since: 1.7.0



Generated: Tue Oct 15 01:00:54 2024 Cross-referenced by PHPXref 0.7.1