I’m excited to announce the newest version of GB Query Enhancements is released in beta. This version includes some nice quality-of-life improvements such as additional hooks, some bug fixes for user meta previews in the editor (which were present even in GenerateBlocks Pro), and some nice new features for dynamic tags.
If you’d like to test this version, you can do so by enabling Beta Updates in the plugin’s settings page.
Features
- Core Block Support for Dynamic Tags
- New settings section to enable dynamic tag replacements and loop context injection for core WordPress blocks (Paragraph, Heading, Image, etc.) used inside GenerateBlocks loops.
- Command Palette dynamic tag insertion
- Insert dynamic tags directly from the WordPress Command Palette (Cmd/Ctrl+K). Tags are inserted at the cursor position in supported text blocks, or copied to the clipboard as a fallback.
Enhancements
- Redesigned settings page
- Card-based layout with status badges for license state, custom toggle switches, version display, and improved visual hierarchy.
- Per-tag output filters
- Every dynamic tag now has a dedicated output filter (gb_query_enhancements_dynamic_tag_output_{$tag}) for modifying individual tag values.
- Query data filters
- New gb_query_enhancements_term_query_data and gb_query_enhancements_user_query_data filters for modifying the full query result array (items, pagination, args) after execution.
- Loop item context filters:
- gb_query_enhancements_term_loop_item_context and gb_query_enhancements_user_loop_item_context filters for modifying block context per loop item before rendering.
- Rendered output filters
- gb_query_enhancements_term_query_render_loop_items and gb_query_enhancements_user_query_render_loop_items filters for modifying the final rendered HTML of all loop items.
- Loop item lifecycle actions
- New before_loop_item and after_loop_item actions for both Term and User queries, allowing custom code to run around each loop item render.
- Expanded filter parameters
- Term and User query args filters now receive $attributes and $page parameters for full block context awareness.
- Supported core blocks filter
- Added gb_query_enhancements_supported_core_blocks.
- Context keys filter
- gb_query_enhancements_context_keys filter for controlling which context keys are passed to supported core blocks.
Bug Fixes
- User meta preview
- Fixed editor preview for user_meta dynamic tags within user query loops. Meta values now correctly resolve using the loop item’s user ID.