Recent

crp_query_pro_max_terms_per_taxonomyfilterPro only

crp_query_pro_max_terms_per_taxonomy

Filters the maximum number of terms per taxonomy used when matching related posts.

Type: filter
Since: 4.0.0
Source: includes/pro/class-query-modifier.php line 290

Parameters

Type Name Description
int $max_terms Maximum number of terms considered per taxonomy. Default 10.

Usage

add_filter( 'crp_query_pro_max_terms_per_taxonomy', function($max_terms) {
    // ...
    return $max_terms;
} );