Theme Compatibility base class.

This is only intended to be extended, and is included here as a basic guide for future Template Packs to use. @link bbp_setup_theme_compat().

since 2.0.0 bbPress (r3506)
package bbPress

 Methods

Pass the $properties to the object on creation.

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

Parameters

$properties

array

Get a theme's property.

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

Parameters

$property

string

Returns

mixed

Set a theme's property.

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

Parameters

$property

string

$value

mixed

Returns

mixed

Return the template directory.

get_dir() : string
since 2.6.0 bbPress (r6548)

Returns

string

 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 );