Make WordPress Core

Opened 7 years ago

Last modified 4 years ago

#43798 new enhancement

Add multiple parent ids in get_terms function

Reported by: anonymized_8711240's profile anonymized_8711240 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Taxonomy Keywords:
Focuses: Cc:

Description

Please let uns use get_term parent arg as an array with multiple ids:

<?php
$args = [
    'parent' => [164, 1411]
];
$child_regions = get_terms( 'region', $args );

Change History (1)

#1 @sabernhardt
4 years ago

  • Component changed from General to Taxonomy
  • Summary changed from Add multiple parent ids in get_term function to Add multiple parent ids in get_terms function
Note: See TracTickets for help on using tickets.