[wp-trac] Re: [WordPress Trac] #9355: wp_delete_term should allow you to force a new term to be applied to all objects

WordPress Trac wp-trac at lists.automattic.com
Wed Mar 18 21:01:55 GMT 2009


#9355: wp_delete_term should allow you to force a new term to be applied to all
objects
-------------------------+--------------------------------------------------
 Reporter:  westi        |       Owner:  westi
     Type:  enhancement  |      Status:  new  
 Priority:  normal       |   Milestone:  2.8  
Component:  Taxonomy     |     Version:       
 Severity:  normal       |    Keywords:       
-------------------------+--------------------------------------------------

Comment(by westi):

 Example usage of feature
 {{{
 wp_delete_term(5,'category',array('default' => 4, 'force_default' =>
 true));
 }}}

 Deletes category id 5 and sets all posts to be in 4.

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


More information about the wp-trac mailing list