Configure T2

Configure blocks and extensions

Last modified: August 11, 2023

t2.json is a configuration file for T2. This should be placed in your theme.

Here's an example:

{
	"version": 1,
	"mu-blocks": ["t2/accordion"],
	"mu-extensions": ["t2/base-style"]
}

link Properties (t2.json)

link PHP Filters

apply_filters( 't2/config', array $config )

Filters the T2 config

Parameter Type Description
$config array T2 config.
apply_filters( 't2/config/inherit_from_parent', bool $should_inherit )

Inherit config from parent theme

Parameter Type Description
$should_inherit bool Whether to inherit config from parent theme. Default true.