WordPress.org

Make WordPress Core

Opened 4 years ago

Last modified 14 months ago

#43798 new enhancement

Add multiple parent ids in get_terms function

Reported by: Chorstikus 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
14 months 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.