Filter: gk/block-mcp/pattern/synced-query-limit
Set how many synced patterns the API recognizes per query.
This cap governs both the synced-pattern listing and the reference counts that decide which patterns are "in use," so the two always agree on the same set. If your site runs a large, actively used pattern library and some patterns aren't showing up, raise this so the full set is acknowledged.
Parameters
| Name | Type | Description |
|---|---|---|
| $limit | int | Maximum number of synced patterns acknowledged per query. Default 500. |
Example
// Recognize up to 1,500 synced patterns on a pattern-heavy site.
add_filter( 'gk/block-mcp/pattern/synced-query-limit', function () {
return 1500;
} );
Since
Source
Defined in wordpress-plugin/gk-block-api/includes/class-pattern-manager.php at line 484