Loads bbPress Default Theme functionality

This is not a real theme by WordPress standards, and is instead used as the fallback for any WordPress theme that does not have bbPress templates in it.

To make your custom theme bbPress compatible and customize the templates, you can copy these files into your theme without needing to merge anything together; bbPress should safely handle the rest.

See @link BBP_Theme_Compat() for more.

since 2.1.0 bbPress (r3732)
package bbPress
subpackage BBP_Theme_Compat
inherited_from \BBP_Theme_Compat

 Methods

The main bbPress (Default) Loader

__construct(array $properties = array()
since 2.1.0 bbPress (r3732)
inherited_from \BBP_Theme_Compat::__construct()

Parameters

$properties

Pass the $properties to the object on creation.

__construct(array $properties = array()
Inherited
since 2.1.0 bbPress (r3926)

Parameters

$properties

array

Get a theme's property.

__get(string $property) : mixed
Inherited
since 2.1.0 bbPress (r3926)

Parameters

$property

string

Returns

mixed

Set a theme's property.

__set(string $property, mixed $value) : mixed
Inherited
since 2.1.0 bbPress (r3926)

Parameters

$property

string

$value

mixed

Returns

mixed

Inserts HTML at the bottom of the main content area to be compatible with the Twenty Twelve theme.

after_main_content() 
since 2.1.0 bbPress (r3732)

AJAX handler to add or remove a topic from a user's favorites

ajax_favorite() 
since 2.1.0 bbPress (r3732)

AJAX handler to Subscribe/Unsubscribe a user from a topic

ajax_subscription() 
since 2.1.0 bbPress (r3732)

Inserts HTML at the top of the main content area to be compatible with the Twenty Twelve theme.

before_main_content() 
since 2.1.0 bbPress (r3732)

Enqueue the required JavaScript files

enqueue_scripts() 
since 2.1.0 bbPress (r3732)

Load the theme CSS

enqueue_styles() 
since 2.1.0 bbPress (r3732)

Return the template directory.

get_dir() : string
Inherited
since 2.6.0 bbPress (r6548)

Returns

string

Load localizations for topic script

localize_topic_script() 

These localizations require information that may not be loaded even by init.

since 2.1.0 bbPress (r3732)

Setup the theme hooks

setup_actions() 
since 2.1.0 bbPress (r3732)
access private

 Properties

 

Should be like:

$_data : array

Default

array()

array( 'id' => ID of the theme (should be unique) 'name' => Name of the theme (should match style.css) 'version' => Theme version for cache busting scripts and styling 'dir' => Path to theme 'url' => URL to theme );