Changeset 49597 for trunk/src/wp-includes/taxonomy.php
- Timestamp:
- 11/14/2020 04:33:52 PM (5 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/taxonomy.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy.php
r49539 r49597 2049 2049 * @param string|string[] $taxonomies The taxonomy names to retrieve terms from. 2050 2050 * @param array|string $args See WP_Term_Query::__construct() for supported arguments. 2051 * @return array|WP_Error The requested term dataor empty array if no terms found.2052 * WP_Error if any of the taxonomies don't exist.2051 * @return WP_Term[]|WP_Error Array of terms or empty array if no terms found. 2052 * WP_Error if any of the taxonomies don't exist. 2053 2053 */ 2054 2054 function wp_get_object_terms( $object_ids, $taxonomies, $args = array() ) { … … 2126 2126 * @since 4.2.0 2127 2127 * 2128 * @param array$terms Array of terms for the given object or objects.2129 * @param int[] $object_ids Array of object IDs for which terms were retrieved.2130 * @param string[] $taxonomies Array of taxonomy names from which terms were retrieved.2131 * @param array $args Array of arguments for retrieving terms for the given2132 * object(s). See wp_get_object_terms() for details.2128 * @param WP_Term[] $terms Array of terms for the given object or objects. 2129 * @param int[] $object_ids Array of object IDs for which terms were retrieved. 2130 * @param string[] $taxonomies Array of taxonomy names from which terms were retrieved. 2131 * @param array $args Array of arguments for retrieving terms for the given 2132 * object(s). See wp_get_object_terms() for details. 2133 2133 */ 2134 2134 $terms = apply_filters( 'get_object_terms', $terms, $object_ids, $taxonomies, $args ); … … 2145 2145 * @since 2.8.0 2146 2146 * 2147 * @param array$terms Array of terms for the given object or objects.2148 * @param int[] $object_ids Array of object IDs for which terms were retrieved.2149 * @param string [] $taxonomies Arrayof taxonomy names from which terms were retrieved.2150 * @param array $args Array of arguments for retrieving terms for the given2151 * object(s). See wp_get_object_terms() for details.2147 * @param WP_Term[] $terms Array of terms for the given object or objects. 2148 * @param string $object_ids Comma separated list if object IDs for which terms were retrieved. 2149 * @param string $taxonomies SQL fragment of taxonomy names from which terms were retrieved. 2150 * @param array $args Array of arguments for retrieving terms for the given 2151 * object(s). See wp_get_object_terms() for details. 2152 2152 */ 2153 2153 return apply_filters( 'wp_get_object_terms', $terms, $object_ids, $taxonomies, $args );
Note: See TracChangeset
for help on using the changeset viewer.