A short introduction to T2
T2 is a modular WordPress framework that streamlines the development, management, and customization of blocks, admin interfaces, and other extensions. It provides a unified architecture for registering, configuring, and documenting reusable components, enabling scalable and maintainable WordPress solutions.
Last modified: May 26, 2025
What is T2?
T2 is a monorepo that brings together a suite of packages for modern WordPress development, including:
- Block Library: A curated set of reusable, accessible, and extensible custom blocks for the WordPress editor.
- Extension Library: A system for registering and managing modular extensions that enhance block and site functionality.
- Admin Interface: A React-based admin dashboard for managing blocks and extensions, with integration hooks for extensibility.
- Assets Management: Automated registration and versioning of vendor scripts and styles, ensuring consistency and performance.
- Config Package: Centralized configuration via a
t2.json
file, allowing you to control which blocks and extensions are loaded in your project. - CLI Tools: Command-line utilities for validating, generating, and maintaining documentation, configuration, and code standards across the monorepo.
- Icons Package: Provides a consistent set of SVG icons for use across blocks, extensions, and admin UI.
- Editor Components: Reusable React components and utilities for building custom block editor interfaces.
Key Features
- Modular Architecture: Easily enable, disable, or extend blocks and extensions.
- Unified Configuration: Manage your setup with a single config file.
- Automated Documentation: Scripts and standards to keep documentation consistent and up-to-date.
- Developer Experience: Utilities and helpers for both PHP and JavaScript, including CLI tools and React components.
- Best Practices: Built-in support for accessibility, SEO, and WordPress coding standards.
Getting Started
- Install the packages you need via Composer or npm.
- Configure your project using the
t2.json
file in your theme. - Register blocks and extensions automatically or programmatically.
- Use the CLI tools to validate and maintain your setup.
- Explore the documentation for each package to learn about available hooks, filters, and customization options.
Learn More
- Block Library Documentation
- Extension Library Documentation
- Admin Interface Documentation
- Assets Management Documentation
- Config Package Documentation
- CLI Tools Documentation
- Icons Package Documentation
- Editor Components Documentation
T2 is under active development. Contributions and feedback are welcome!