Make WordPress Core

Changeset 50811


Ignore:
Timestamp:
05/04/2021 03:00:33 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Docs: Further synchronize documentation for some Plugin API functions.

Follow-up to [50807].

See #50531.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

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

    r50807 r50811  
    5151
    5252    /**
    53      * Flag for if we're current doing an action, rather than a filter.
     53     * Flag for if we're currently doing an action, rather than a filter.
    5454     *
    5555     * @since 4.7.0
     
    5959
    6060    /**
    61      * Adds a callback function to the specified filter hook.
     61     * Adds a callback function to a filter hook.
    6262     *
    6363     * @since 4.7.0
     
    6565     * @param string   $hook_name     The name of the filter to add the callback to.
    6666     * @param callable $callback      The callback to be run when the filter is applied.
    67      * @param int      $priority      The order in which the functions associated with a particular action
     67     * @param int      $priority      The order in which the functions associated with a particular filter
    6868     *                                are executed. Lower numbers correspond with earlier execution,
    6969     *                                and functions with the same priority are executed in the order
    70      *                                in which they were added to the action.
     70     *                                in which they were added to the filter.
    7171     * @param int      $accepted_args The number of arguments the function accepts.
    7272     */
     
    165165
    166166    /**
    167      * Removes a callback function from the specified filter hook.
     167     * Removes a callback function from a filter hook.
    168168     *
    169169     * @since 4.7.0
  • trunk/src/wp-includes/plugin.php

    r50807 r50811  
    280280 * @param string   $hook_name The filter hook to which the function to be removed is hooked.
    281281 * @param callable $callback  The name of the function which should be removed.
    282  * @param int      $priority  Optional. The priority of the function. Default 10.
     282 * @param int      $priority  Optional. The exact priority used when adding the original
     283 *                            filter callback. Default 10.
    283284 * @return bool Whether the function existed before it was removed.
    284285 */
     
    554555 * @param string   $hook_name The action hook to which the function to be removed is hooked.
    555556 * @param callable $callback  The name of the function which should be removed.
    556  * @param int      $priority  Optional. The priority of the function. Default 10.
     557 * @param int      $priority  Optional. The exact priority used when adding the original
     558 *                            action callback. Default 10.
    557559 * @return bool Whether the function is removed.
    558560 */
Note: See TracChangeset for help on using the changeset viewer.