Design System is here - Read the release post

Learn GeneratePress

Query and Looper

Hooks for the Query block, which builds the list of items, and the Looper block, which repeats its Loop Item block for each of them. Use the first group to change the standard post query, and the second to add a query type of your own, such as items from an API or a custom … Read more

Registering conditions (Pro)

Conditions decide whether a block, menu item or overlay panel is shown. GenerateBlocks Pro ships types such as location, user role and device. You can add your own type with a class that tells GenerateBlocks which rules and operators it offers and how to evaluate them. To hook into the existing types, see Conditions: registering … Read more

Dynamic tags: output and rendering

Hooks for changing what a dynamic tag outputs, which blocks and HTML can use tags, and how tags are previewed in the editor. To register your own tag, see Registering dynamic tags. For who can use dynamic tags and how meta is read, see Dynamic tags: meta access and security. Jump to Changing a tag’s … Read more

Registering form actions (Pro)

A form action is what a Form block does with a submission once it has been sanitized and validated, such as sending an email or posting to a webhook. GenerateBlocks Pro registers four actions: email, email-signup, webhook and confirmation-email. You can register your own with GenerateBlocks_Pro_Form_Action_Registry. For the hooks around form processing, see Forms: processing … Read more

Editor: inspector controls and panels

JavaScript hooks for adding to or changing the controls in the block editor: the block inspector, the style panels, individual controls and presets, and the GenerateBlocks editor sidebar. These are wp.hooks filters and actions. Add them with wp.hooks.addFilter() or wp.hooks.addAction() in a script that loads in the block editor, after wp-hooks and the GenerateBlocks editor … Read more

Registering form integrations (Pro)

A form integration adds a service to the form editor, such as an email marketing list or a webhook. GenerateBlocks Pro includes Mailchimp, ActiveCampaign, Brevo, ConvertKit, MailerLite and a webhook. You can add your own with generateblocks_pro_register_form_integration(). For the hooks around integrations, see Forms: email, webhooks and integrations. To run your own code on a … Read more

REST API

GenerateBlocks registers REST API routes that the block editor and its dashboards use. This page covers the routes a developer is most likely to call or build on, then lists the rest by namespace. Most routes are for the editor, and they all check the current user’s permissions. Jump to How the routes work The … Read more

Dynamic tags: meta access and security

Dynamic tags can read post, user, term and option data, so GenerateBlocks controls who can add tags and which data a tag can reveal. These hooks change those rules and how meta values are read. Several of them are security settings. Loosening them can expose private data to visitors or editors, so only change them … Read more

Editor Access (Pro)

Editor Access decides which controls each user sees in the block editor and which blocks they can edit, using access profiles and control sets. These hooks change who can manage it, how profiles are matched to users, and which controls it allows. The JavaScript hooks let your own blocks and controls respect the same rules. … Read more

Editor: block attributes, appenders and preview

Hooks for how GenerateBlocks blocks behave in the block editor: the data they save, the wrapper and inserter controls they show, and the lists of fonts, shapes and templates they offer. For the controls in the inspector, see Editor: inspector controls and panels. Jump to Font, shape and template lists generateblocks_typography_font_family_list GB Free — since … Read more