WordPress.org

Make WordPress Core

Ticket #34175: 34175.get_terms_fields_terms.taxonomy-functions.php.patch

File 34175.get_terms_fields_terms.taxonomy-functions.php.patch, 471 bytes (added by wpsmith, 5 years ago)

get_terms_fields_terms filter

  • wp-includes/taxonomy-functions.php

     
    14851485                foreach ( $terms as $term ) {
    14861486                        $_terms[ $term->term_id ] = $term->slug;
    14871487                }
     1488        } else {
     1489                $_terms = apply_filters( 'get_terms_fields_terms', $_terms, $_fields, $args, $taxonomies );
    14881490        }
    14891491
    14901492        if ( ! empty( $_terms ) ) {