mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-03 20:24:26 +00:00
Docs: Add a @since note about new parameters with the spread operator added to function signatures.
Props jrf. See #47678. git-svn-id: https://develop.svn.wordpress.org/trunk@46451 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -430,6 +430,8 @@ function add_action( $tag, $function_to_add, $priority = 10, $accepted_args = 1
|
||||
* $value = do_action( 'example_action', $arg1, $arg2 );
|
||||
*
|
||||
* @since 1.2.0
|
||||
* @since 5.3.0 Formalized the existing and already documented `...$arg` parameter
|
||||
* by adding it to the function signature.
|
||||
*
|
||||
* @global array $wp_filter Stores all of the filters
|
||||
* @global array $wp_actions Increments the amount of times action was triggered.
|
||||
|
||||
Reference in New Issue
Block a user