WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/26/2020 06:47:28 PM (11 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-admin/includes/export.php

    r47808 r48185  
    329329             * Filters whether to selectively skip term meta used for WXR exports.
    330330             *
    331              * Returning a truthy value to the filter will skip the current meta
     331             * Returning a truthy value from the filter will skip the current meta
    332332             * object from being exported.
    333333             *
     
    596596                     * Filters whether to selectively skip post meta used for WXR exports.
    597597                     *
    598                      * Returning a truthy value to the filter will skip the current meta
     598                     * Returning a truthy value from the filter will skip the current meta
    599599                     * object from being exported.
    600600                     *
     
    639639                         * Filters whether to selectively skip comment meta used for WXR exports.
    640640                         *
    641                          * Returning a truthy value to the filter will skip the current meta
     641                         * Returning a truthy value from the filter will skip the current meta
    642642                         * object from being exported.
    643643                         *
Note: See TracChangeset for help on using the changeset viewer.