You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+36Lines changed: 36 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,6 +61,42 @@ Sort in ascending or descending order by:
61
61
62
62
Improve the performance of the query by disabling pagination. This is done automatically when there is now Pagination block in teh Post Template.
63
63
64
+
## Filtering the available controls
65
+
66
+
It is possible to remove controls from AQL using the `aql_allowed_controls` filter. The filter receives a single parameter containing an array of allowed controls. This can be modified to remove the control from the UI and stop processing the associated query param.
67
+
68
+
```php
69
+
add_filter(
70
+
'aql_allowed_controls',
71
+
function( $controls ) {
72
+
// Exclude the additional_post_types and taxonomy_query_builder controls.
0 commit comments