[wp-trac] [WordPress Trac] #9886: Add an apply_filters_ref_array() function (was: Add an apply_filter_ref_array() function)
WordPress Trac
wp-trac at lists.automattic.com
Tue Jan 5 16:06:02 UTC 2010
#9886: Add an apply_filters_ref_array() function
-----------------------------+----------------------------------------------
Reporter: westi | Owner: westi
Type: feature request | Status: new
Priority: normal | Milestone: 3.0
Component: Plugins | Version: 2.8
Severity: major | Keywords: needs-patch early 2nd-opinion
-----------------------------+----------------------------------------------
Comment(by hakre):
Just reviewed the ticket.
* '''query_vars''' filter is ''not'' part of the class WP_Query, it's
part of WP.
* '''posts_where''' filter is part of the class WP_Query (function
get_posts()).
* '''post_limits''' filter is part of the class WP_Query (function
get_posts()).
So for '''query_vars''' I do not acutally see how it should apply to class
WP_Query. It should apply to class WP.
For the other two cases it might indeed make sense. There already is an
do_action_ref_array() function available which might be usefull to consult
before implementing the new function.
The name of the new function should be
''apply_filter'''s'''_ref_array()''. To conform with the naming of the
existing ''apply_filters()'' function.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9886#comment:14>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list