[wp-trac] Re: [WordPress Trac] #3458: Filter cat_ID when a new category is created

WordPress Trac wp-trac at lists.automattic.com
Sun Dec 10 20:30:02 GMT 2006


#3458: Filter cat_ID when a new category is created
----------------------------+-----------------------------------------------
 Reporter:  donncha         |        Owner:  markjaquith
     Type:  enhancement     |       Status:  closed     
 Priority:  normal          |    Milestone:  2.1        
Component:  Administration  |      Version:  2.1        
 Severity:  normal          |   Resolution:  fixed      
 Keywords:                  |  
----------------------------+-----------------------------------------------
Comment (by markjaquith):

 I gave it a second param... the $update flag, which will be TRUE or FALSE
 (TRUE representing a pre-existing category).  If $update is false, you
 don't need to bother checking for post2cat entries to update.

 I gave some inline notes as well, as this is a pretty powerful hook that
 could really mess things up if not fully understood.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/3458#comment:8>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list