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

See #37402


git-svn-id: https://develop.svn.wordpress.org/trunk@45420 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn
2019-05-25 22:51:14 +00:00
parent 51ab0b5824
commit fe7958889a
2 changed files with 38 additions and 19 deletions

View File

@@ -253,12 +253,12 @@ final class WP_Hook implements Iterator, ArrayAccess {
}
/**
* Calls the callback functions added to a filter hook.
* Calls the callback functions that have been added to a filter hook.
*
* @since 4.7.0
*
* @param mixed $value The value to filter.
* @param array $args Arguments to pass to callbacks.
* @param array $args Additional parameters to pass to the callback functions.
* @return mixed The filtered value after all hooked functions are applied to it.
*/
public function apply_filters( $value, $args ) {
@@ -299,11 +299,11 @@ final class WP_Hook implements Iterator, ArrayAccess {
}
/**
* Executes the callback functions hooked on a specific action hook.
* Calls the callback functions that have been added to an action hook.
*
* @since 4.7.0
*
* @param mixed $args Arguments to pass to the hook callbacks.
* @param array $args Parameters to pass to the callback functions.
*/
public function do_action( $args ) {
$this->doing_action = true;