[wp-trac] [WordPress Trac] #34309: New function: `add_multiple_actions()` and `add_multiple_filters()`
WordPress Trac
noreply at wordpress.org
Thu Oct 15 08:08:56 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: General | Version:
Severity: normal | Keywords:
Focuses: |
------------------------------+-----------------------------
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>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list