Skip to content
Get Bricks

Filter: bricks/get_terms_options/enable_limit

Filter: bricks/get_terms_options/enable_limit

Section titled “Filter: bricks/get_terms_options/enable_limit”

Enables a limit on the number of taxonomies queried when fetching terms for builder controls. This is useful for sites with a very large number of taxonomies to prevent memory exhaustion.

  • $enable_limit (bool): Whether to limit the number of queried taxonomies. Default is false.
add_filter( 'bricks/get_terms_options/enable_limit', function( $enable_limit ) {
// Enable the limit to improve performance on sites with many taxonomies
return true;
} );