WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/05/2019 09:21:46 PM (18 months ago)
Author:
johnbillion
Message:

Docs: Improve documentation of known return types, plus other docs fixes.

See #48303

File:
1 edited

Legend:

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

    r46596 r46660  
    43784378
    43794379/**
    4380  * Retrieve all taxonomies of a post with just the names.
     4380 * Retrieve all taxonomy names for the given post.
    43814381 *
    43824382 * @since 2.5.0
    43834383 *
    43844384 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post.
    4385  * @return array An array of all taxonomy names for the given post.
     4385 * @return string[] An array of all taxonomy names for the given post.
    43864386 */
    43874387function get_post_taxonomies( $post = 0 ) {
     
    44934493 * @param string $resource_type Optional. Type of resource $object_type is. Accepts 'post_type'
    44944494 *                              or 'taxonomy'. Default empty.
    4495  * @return array An array of ancestors from lowest to highest in the hierarchy.
     4495 * @return int[] An array of IDs of ancestors from lowest to highest in the hierarchy.
    44964496 */
    44974497function get_ancestors( $object_id = 0, $object_type = '', $resource_type = '' ) {
     
    45304530     * @since 4.1.1 Introduced the `$resource_type` parameter.
    45314531     *
    4532      * @param array  $ancestors     An array of object ancestors.
     4532     * @param int[]  $ancestors     An array of IDs of object ancestors.
    45334533     * @param int    $object_id     Object ID.
    45344534     * @param string $object_type   Type of object.
Note: See TracChangeset for help on using the changeset viewer.