Make WordPress Core

Opened 8 years ago

Last modified 6 years ago

#43798 new enhancement

Add multiple parent ids in get_terms function

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

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
6 years ago

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