Summery Summery
Creates an array of term objects from an array of term IDs.
Syntax Syntax
Description Description
Also discards invalid term objects.
Parameters Parameters
- $term_ids
-
(Required) Term IDs.
Return Return
(array)
Source Source
File: wp-includes/class-wp-term-query.php
/** * Creates an array of term objects from an array of term IDs. * * Also discards invalid term objects. * * @since 4.9.8 * * @param array $term_ids Term IDs. * @return array */ protected function populate_terms( $term_ids ) { $terms = array(); if ( ! is_array( $term_ids ) ) { return $terms; }
Advertisement
Changelog Changelog
Version | Description |
---|---|
4.9.8 | Introduced. |