[wp-trac] [WordPress Trac] #34309: New function: `add_multiple_actions()` and `add_multiple_filters()`
WordPress Trac
noreply at wordpress.org
Fri Oct 16 07:27:42 UTC 2015
#34309: New function: `add_multiple_actions()` and `add_multiple_filters()`
------------------------------+------------------------------
Reporter: sebastian.pisula | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Plugins | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
------------------------------+------------------------------
Changes (by SergeyBiryukov):
* component: General => Plugins
Old description:
> Sometimes I need create filter for few elements with __return_true
>
> So for example:
>
> {{{
> $tags = array
> (
> 'install_theme_complete_actions',
> 'use_default_gallery_style',
> 'show_recent_comments_widget_style'
> );
>
> add_multiple_filters($tags, '__return_true');
> }}}
New description:
Sometimes I need create filter for few elements with `__return_true`
So for example:
{{{
$tags = array
(
'install_theme_complete_actions',
'use_default_gallery_style',
'show_recent_comments_widget_style'
);
add_multiple_filters($tags, '__return_true');
}}}
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34309#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list