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/nav-menu.php

    r46596 r46660  
    601601 * @param array $args Optional. Array of arguments passed on to get_terms().
    602602 *                    Default empty array.
    603  * @return array Menu objects.
     603 * @return WP_Term[] An array of menu objects.
    604604 */
    605605function wp_get_nav_menus( $args = array() ) {
     
    985985 * @param string $object_type The type of object, such as "taxonomy" or "post_type."
    986986 * @param string $taxonomy    If $object_type is "taxonomy", $taxonomy is the name of the tax that $object_id belongs to
    987  * @return array The array of menu item IDs; empty array if none;
     987 * @return int[] The array of menu item IDs; empty array if none;
    988988 */
    989989function wp_get_associated_nav_menu_items( $object_id = 0, $object_type = 'post_type', $taxonomy = '' ) {
Note: See TracChangeset for help on using the changeset viewer.