From b01c8f193b93b0cf0627a4e29008e933206e73b4 Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Thu, 21 Jul 2022 14:30:21 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@53748 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/plugin.php b/src/wp-includes/plugin.php index c1e5ff0bbe..bd28be7899 100644 --- a/src/wp-includes/plugin.php +++ b/src/wp-includes/plugin.php @@ -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