[wp-trac] [WordPress Trac] #19584: Ability to use wp_insert_term to add multiple terms (pass term as array)

WordPress Trac wp-trac at lists.automattic.com
Sat Dec 17 03:04:17 UTC 2011


#19584: Ability to use wp_insert_term to add multiple terms (pass term as array)
-----------------------------+----------------------
 Reporter:  ZaneMatthew      |       Owner:
     Type:  feature request  |      Status:  closed
 Priority:  normal           |   Milestone:
Component:  Taxonomy         |     Version:  3.3
 Severity:  normal           |  Resolution:  wontfix
 Keywords:                   |
-----------------------------+----------------------
Changes (by scribu):

 * status:  new => closed
 * resolution:   => wontfix
 * milestone:  Awaiting Review =>


Comment:

 I see no point in doing this. Unlike wp_set_post_terms(), wp_insert_term()
 also accepts an array of arguments.

 We wouldn't make wp_insert_post() accept an array.

 Just use a foreach loop or make a wrapper function if you need to do this
 often.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19584#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list