id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,focuses 8640,2 new functions for Plugin API.,momo360modena,ShaneF,"With my plugins, i use often the same action for differents Hooks. The code is: {{{ add_action('save_post', 'example'); add_action('publish_post', 'example'); add_action('post_syndicated_item', 'example'); }}} Why not to create add_actions() and add_filters() ? The result will be: {{{ add_actions( array('save_post', 'publish_post', 'post_syndicated_item'), 'example' ); }}} Props functions: {{{ function add_filters($tags, $function_to_add, $priority = 10, $accepted_args = 1) { if ( is_array($tags) ) { foreach ( (array) $tags as $tag ) { add_filter($tag, $function_to_add, $priority, $accepted_args); } return true; } else { return add_filter($tags, $function_to_add, $priority, $accepted_args); } } function add_actions($tags, $function_to_add, $priority = 10, $accepted_args = 1) { return add_filters($tags, $function_to_add, $priority, $accepted_args); } }}}",enhancement,closed,normal,,Plugins,2.7,minor,wontfix,has-patch tested commit,,