WordPress.org

Make WordPress Core

Changeset 36712


Ignore:
Timestamp:
02/25/2016 09:24:10 PM (4 years ago)
Author:
johnbillion
Message:

Docs: Improve the description of the get_object_taxonomies() function. Uncertainty has no place in documentation.

See #32246

File:
1 edited

Legend:

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

    r36709 r36712  
    157157
    158158/**
    159  * Return all of the taxonomy names that are of $object_type.
    160  *
    161  * It appears that this function can be used to find all of the names inside of
    162  * $wp_taxonomies global variable.
    163  *
    164  * `$taxonomies = get_object_taxonomies( 'post' )` Should
    165  * result in `Array( 'category', 'post_tag' )`
     159 * Return the names or objects of the taxonomies which are registered for the requested object or object type, such as
     160 * a post object or post type name.
     161 *
     162 * Example:
     163 *
     164 *     $taxonomies = get_object_taxonomies( 'post' );
     165 *
     166 * This results in:
     167 *
     168 *     Array( 'category', 'post_tag' )
    166169 *
    167170 * @since 2.3.0
Note: See TracChangeset for help on using the changeset viewer.