[wp-trac] [WordPress Trac] #49032: Introduce __return_value()
WordPress Trac
noreply at wordpress.org
Wed Dec 18 18:53:14 UTC 2019
#49032: Introduce __return_value()
--------------------------------+------------------------------
Reporter: giuseppe.mazzapica | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------------+------------------------------
Comment (by Rarst):
I think the current core consensus is against using closure callbacks in
core.
Related on removing complex callbacks #46635
For trivia I implemented hooking a concrete return value a long time ago
and it never got much interest https://github.com/Rarst/advanced-hooks-api
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49032#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list