WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/26/2020 06:47:28 PM (19 months ago)
Author:
SergeyBiryukov
Message:

Docs: Standardize on "Returning a value from the filter" vs. "Passing a value to the filter".

The filter is the callback function added with add_filter(), therefore the hook passes a value to the filter, and the filter returns a value to change its behaviour.

The documentation is referring to the latter.

Props johnbillion.
See #49572, #16557.

File:
1 edited

Legend:

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

    r48141 r48185  
    659659
    660660    /**
    661      * Allows render_block() to be shortcircuited, by returning a non-null value.
     661     * Allows render_block() to be short-circuited, by returning a non-null value.
    662662     *
    663663     * @since 5.1.0
Note: See TracChangeset for help on using the changeset viewer.