WordPress.org

Make WordPress Core

Opened 2 months ago

#43798 new enhancement

Add multiple parent ids in get_term function

Reported by: Chorstikus Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: General 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 (0)

Note: See TracTickets for help on using tickets.