Getting started with T2
In this guide you will learn how to use T2 in a project. It will walk you through installing the plugin and initiating a project.
Last modified: April 11, 2023
Install the plugin
The recommended way to install T2 is through composer. Remember to add t2-packages.teft.io
to the reposetories key in your composer.json
file.
composer require t2/t2
T2 depends on autoloading from composer. Make sure this is included in your installation.
require_once __DIR__ . '/vendor/autoload.php';
Bootstrap a project
No configuration is required to start using T2, just install the plugin and go to the settings page in WordPress to active your desired blocks and extensions.
It is recommended to create a t2.json
file in your theme that contains your custom config options for T2.