Welcome to Vector Expressions
Vector Expressions is a professional-grade logic engine that brings dynamic intelligence directly into the native WordPress Block Editor. Instead of writing custom PHP templates or JavaScript to make your blocks data-aware, you write concise expression language directly in the editor’s sidebar—and the engine resolves it server-side before the page is ever served.
What You Can Do
- Dynamic Text: Render user names, post titles, or site metadata inline in any block’s content.
- Block Visibility: Show or hide entire blocks based on Boolean expressions (e.g.,
user.is_logged_in). - Dynamic Classes: Inject CSS class names based on live data to enable stateful styling.
- Chained Filters: Transform data on the fly with a built-in library of string, date, and logic filters.
How It Works
Just type an expression in your block’s content like {{post.title}}. Vector Expressions intercepts the WordPress render pipeline using a Recursive-Descent Parser that compiles your expressions into an Abstract Syntax Tree (AST). The AST is cached by expression hash, then resolved in a single pass using the native WP_HTML_Tag_Processor API — delivering near-zero overhead even in complex Query Loop templates.
Before You Begin
- WordPress 6.2 or higher is required.
- You must be using the Block Editor (Gutenberg). Classic Editor is not supported.
- PHP 8.1 or higher is required.
Next Steps
Ready to get started? Install the plugin and write your first expression in under five minutes.