mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Docs: Switch to the more common syntax for variadic function documentation.
See #37402 git-svn-id: https://develop.svn.wordpress.org/trunk@45418 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -170,9 +170,9 @@ function has_filter( $tag, $function_to_check = false ) {
|
||||
* @global array $wp_filter Stores all of the filters.
|
||||
* @global array $wp_current_filter Stores the list of current filters with the current one last.
|
||||
*
|
||||
* @param string $tag The name of the filter hook.
|
||||
* @param mixed $value The value on which the filters hooked to `$tag` are applied on.
|
||||
* @param mixed $var,... Additional variables passed to the functions hooked to `$tag`.
|
||||
* @param string $tag The name of the filter hook.
|
||||
* @param mixed $value The value on which the filters hooked to `$tag` are applied on.
|
||||
* @param mixed ...$var Additional variables passed to the functions hooked to `$tag`.
|
||||
* @return mixed The filtered value after all hooked functions are applied to it.
|
||||
*/
|
||||
function apply_filters( $tag, $value ) {
|
||||
@@ -421,9 +421,9 @@ function add_action( $tag, $function_to_add, $priority = 10, $accepted_args = 1
|
||||
* @global array $wp_actions Increments the amount of times action was triggered.
|
||||
* @global array $wp_current_filter Stores the list of current filters with the current one last
|
||||
*
|
||||
* @param string $tag The name of the action to be executed.
|
||||
* @param mixed $arg,... Optional. Additional arguments which are passed on to the
|
||||
* functions hooked to the action. Default empty.
|
||||
* @param string $tag The name of the action to be executed.
|
||||
* @param mixed ...$arg Optional. Additional arguments which are passed on to the
|
||||
* functions hooked to the action. Default empty.
|
||||
*/
|
||||
function do_action( $tag, $arg = '' ) {
|
||||
global $wp_filter, $wp_actions, $wp_current_filter;
|
||||
|
||||
Reference in New Issue
Block a user