Make WordPress Core


Ignore:
Timestamp:
04/29/2022 07:27:00 PM (3 years ago)
Author:
johnbillion
Message:

Docs: Improve documentation of the walker argument for various functions.

See #54729

File:
1 edited

Legend:

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

    r52958 r53318  
    332332 *     @type bool         $required          Whether the `<select>` element should have the HTML5 'required' attribute.
    333333 *                                           Default false.
     334 *     @type Walker       $walker            Walker object to use to build the output. Default empty which results in a
     335 *                                           Walker_CategoryDropdown instance being used.
    334336 * }
    335337 * @return string HTML dropdown list of categories.
     
    519521 *     @type bool|int     $use_desc_for_title    Whether to use the category description as the title attribute.
    520522 *                                               Accepts 0, 1, or their bool equivalents. Default 1.
     523 *     @type Walker       $walker                Walker object to use to build the output. Default empty which results
     524 *                                               in a Walker_Category instance being used.
    521525 * }
    522526 * @return void|string|false Void if 'echo' argument is true, HTML list of categories if 'echo' is false.
Note: See TracChangeset for help on using the changeset viewer.