| | 1490 | } else { |
| | 1491 | |
| | 1492 | /** |
| | 1493 | * Filter the terms to arrange the return accordingly. |
| | 1494 | * |
| | 1495 | * Field lists modified using this filter will only modify the term fields returned |
| | 1496 | * by the function when the `$fields` parameter set to a custom value different from |
| | 1497 | * default values. |
| | 1498 | * |
| | 1499 | * Use of this filter can result in unpredictable behavior, and is not recommended. |
| | 1500 | * |
| | 1501 | * @since 4.4.0 |
| | 1502 | * |
| | 1503 | * @param array $_terms An array of terms to return. |
| | 1504 | * @param string $_fields Current fields parameter. |
| | 1505 | * @param array $args An array of term query arguments. |
| | 1506 | * @param array $taxonomies An array of taxonomies. |
| | 1507 | */ |
| | 1508 | $_terms = apply_filters( 'get_terms_fields_terms', $_terms, $_fields, $args, $taxonomies ); |