mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-01 19:24:34 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user