GeneratePress AI is here - Read the release post

Learn GeneratePress

License and Account

The manage license feature allows you to authorize a new site URL for using the premium license or deactivate a site from using the license remotely through your account page.

Admin dashboard and platform

Hooks for the GenerateBlocks admin screens, the GenerateBlocks settings, the plugin’s feature flags and the scans that find where a style, token, condition or form is used. Jump to Dashboard screens generateblocks_dashboard_screens GB Free — since GenerateBlocks 1.2. GenerateBlocks Pro uses it for its own pages. The generateblocks_dashboard_screens filter lists the admin screens that get … Read more

Conditions: registering types and rules (Pro)

Hooks for adding condition types, changing the rules and metadata the editor shows, and controlling who can use conditions. To build a condition type, see Registering conditions. To change the rules of a built-in type, see Conditions: built-in rule filters. Jump to Registering generateblocks_register_conditions GB Pro The generateblocks_register_conditions action fires on init at priority 10, … Read more

Conditions: built-in rule filters (Pro)

Each built-in condition type has a filter for its list of rules. Every filter receives and returns an array of rule key => label. The labels fill the Rule select in the editor. To change the rules of every type from one place, use generateblocks_condition_rules. How a rule you add behaves depends on the type, … Read more

Forms: processing and validation (Pro)

Hooks for what happens when a Form block is submitted: checking where the request came from, verifying and validating the data, and acting once it succeeds. For emails, webhooks and email marketing services, see Forms: email, webhooks and integrations. For stored submissions, see Forms: rendering and stored submissions. Jump to The submission flow A submission … Read more

Forms: rendering and stored submissions (Pro)

Hooks for the HTML attributes a form control can have and for how long the form keeps stored submissions. For what happens when a form is submitted, see Forms: processing and validation. Jump to Form controls generateblocks_form_control_html_attributes GB Pro — since GenerateBlocks 2.6. The generateblocks_form_control_html_attributes filter changes which custom HTML attributes a Form Field Control … Read more

Global styles and design tokens (Pro)

Hooks for Global Styles and Design Tokens, and for the style builder that edits block styles. Global Styles are reusable classes with their own CSS, and Design Tokens are the CSS variables of a design system. Both are GenerateBlocks Pro features. The style builder hooks near the end are in the free plugin and apply … Read more

Overlays, menus and accordion (Pro)

Hooks for Overlay Panels (pop-ups, modals and mega menus), the Classic Menu block and the accordion’s FAQ schema. They are all GenerateBlocks Pro features. Jump to Overlay Panels generateblocks_overlays_capability GB Pro — since GenerateBlocks 2.4. The generateblocks_overlays_capability filter sets the capability needed to use or manage Overlay Panels. Parameters: $capability (string, the capability required), $context … Read more

Pattern library

Hooks for the pattern library, the panel in the block editor where you browse and insert patterns from GenerateBlocks libraries, your own libraries and local patterns. GenerateBlocks Pro adds local pattern collections, global styles and forms to the library. Jump to Libraries and access generateblocks_pattern_libraries GB Free — GenerateBlocks Pro uses it to add its … Read more