Changeset 50811
- Timestamp:
- 05/04/2021 03:00:33 PM (3 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-hook.php
r50807 r50811 51 51 52 52 /** 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. 54 54 * 55 55 * @since 4.7.0 … … 59 59 60 60 /** 61 * Adds a callback function to the specifiedfilter hook.61 * Adds a callback function to a filter hook. 62 62 * 63 63 * @since 4.7.0 … … 65 65 * @param string $hook_name The name of the filter to add the callback to. 66 66 * @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 action67 * @param int $priority The order in which the functions associated with a particular filter 68 68 * are executed. Lower numbers correspond with earlier execution, 69 69 * 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. 71 71 * @param int $accepted_args The number of arguments the function accepts. 72 72 */ … … 165 165 166 166 /** 167 * Removes a callback function from the specifiedfilter hook.167 * Removes a callback function from a filter hook. 168 168 * 169 169 * @since 4.7.0 -
trunk/src/wp-includes/plugin.php
r50807 r50811 280 280 * @param string $hook_name The filter hook to which the function to be removed is hooked. 281 281 * @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. 283 284 * @return bool Whether the function existed before it was removed. 284 285 */ … … 554 555 * @param string $hook_name The action hook to which the function to be removed is hooked. 555 556 * @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. 557 559 * @return bool Whether the function is removed. 558 560 */
Note: See TracChangeset
for help on using the changeset viewer.