Make WordPress Core


Ignore:
Timestamp:
05/25/2019 10:51:14 PM (6 years ago)
Author:
johnbillion
Message:

Docs: Improve and correct documentation for hook-related variadic functions.

See #37402

File:
1 edited

Legend:

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

    r42746 r45420  
    254254
    255255    /**
    256      * Calls the callback functions added to a filter hook.
     256     * Calls the callback functions that have been added to a filter hook.
    257257     *
    258258     * @since 4.7.0
    259259     *
    260260     * @param mixed $value The value to filter.
    261      * @param array $args  Arguments to pass to callbacks.
     261     * @param array $args  Additional parameters to pass to the callback functions.
    262262     * @return mixed The filtered value after all hooked functions are applied to it.
    263263     */
     
    300300
    301301    /**
    302      * Executes the callback functions hooked on a specific action hook.
    303      *
    304      * @since 4.7.0
    305      *
    306      * @param mixed $args Arguments to pass to the hook callbacks.
     302     * Calls the callback functions that have been added to an action hook.
     303     *
     304     * @since 4.7.0
     305     *
     306     * @param array $args Parameters to pass to the callback functions.
    307307     */
    308308    public function do_action( $args ) {
Note: See TracChangeset for help on using the changeset viewer.