Make WordPress Core


Ignore:
Timestamp:
11/14/2020 04:33:52 PM (5 years ago)
Author:
johnbillion
Message:

Docs: Various docblock corrections and improvements.

See #50768

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/taxonomy.php

    r49539 r49597  
    20492049 * @param string|string[] $taxonomies The taxonomy names to retrieve terms from.
    20502050 * @param array|string    $args       See WP_Term_Query::__construct() for supported arguments.
    2051  * @return array|WP_Error The requested term data or 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.
    20532053 */
    20542054function wp_get_object_terms( $object_ids, $taxonomies, $args = array() ) {
     
    21262126     * @since 4.2.0
    21272127     *
    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 given
    2132      *                             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.
    21332133     */
    21342134    $terms = apply_filters( 'get_object_terms', $terms, $object_ids, $taxonomies, $args );
     
    21452145     * @since 2.8.0
    21462146     *
    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 Array 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.
     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.
    21522152     */
    21532153    return apply_filters( 'wp_get_object_terms', $terms, $object_ids, $taxonomies, $args );
Note: See TracChangeset for help on using the changeset viewer.