Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update understandingFilters.rst #50

Merged
merged 1 commit into from
Jun 7, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions source/Tutorials/understandingFilters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ modify it somehow (though this can include completely replacing it or
leaving it unchanged), and return the result. That returned value is what's
passed to any later functions attached to the same filter, and eventually
back to the code that applied the filter in the first place. Since filters
work this way, there's aclear distinction from how hooks work in this case:
filter functions filter functions **must** return a value.
work this way, there's a clear distinction from how hooks work in this case: filter functions **must** return a value.

The second parameter to a filter function is conventionally called ``$args``.
Just like with hooks, ``$args`` is an array of arguments, optional useful
Expand Down