Make WordPress Core

Changeset 53748

Timestamp:
07/21/2022 02:30:21 PM (2 years ago)
Author:
audrasjb
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/plugin.php

    r52952 r53748  
    425425 *      * - 'example_action' is the action hook.
    426426 *      * - $arg1 and $arg2 are the additional arguments passed to the callback.
    427  *     $value = do_action( 'example_action', $arg1, $arg2 );
     427 *     do_action( 'example_action', $arg1, $arg2 );
    428428 *
    429429 * @since 1.2.0
Note: See TracChangeset for help on using the changeset viewer.