Docs: Update `do_action()` docblock code example.
This changeset fixes an issue with the code example provided: `do_action()` doesn't return any value. Props leogermani, thakkarhardik. Fixes #55977. Built from https://develop.svn.wordpress.org/trunk@53748 git-svn-id: http://core.svn.wordpress.org/trunk@53307 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ee4f7d7415
commit
0ccc01839a
|
@ -424,7 +424,7 @@ function add_action( $hook_name, $callback, $priority = 10, $accepted_args = 1 )
|
|||
* *
|
||||
* * - 'example_action' is the action hook.
|
||||
* * - $arg1 and $arg2 are the additional arguments passed to the callback.
|
||||
* $value = do_action( 'example_action', $arg1, $arg2 );
|
||||
* do_action( 'example_action', $arg1, $arg2 );
|
||||
*
|
||||
* @since 1.2.0
|
||||
* @since 5.3.0 Formalized the existing and already documented `...$arg` parameter
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.1-alpha-53747';
|
||||
$wp_version = '6.1-alpha-53748';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue