[wp-trac] Re: [WordPress Trac] #2930: Filter called for wp_title
 does not receive all arguments
    WordPress Trac 
    wp-trac at lists.automattic.com
       
    Sun Jul  9 10:59:46 GMT 2006
    
    
  
#2930: Filter called for wp_title does not receive all arguments
----------------------+-----------------------------------------------------
 Reporter:  sargant   |        Owner:  anonymous
     Type:  defect    |       Status:  closed   
 Priority:  normal    |    Milestone:           
Component:  Template  |      Version:           
 Severity:  normal    |   Resolution:  invalid  
 Keywords:            |  
----------------------+-----------------------------------------------------
Comment (by markjaquith):
 In order to get additional values, you must specify so in your
 add_filter() call.
 Like so:
 add_filter('wp_title', 'title_filter_argument_test', 10, 2);
 10 is the order of execution (10 is default) and 2 is the number of params
 you want passed (you want both, so you specify 2).  Now your function will
 get both params.
-- 
Ticket URL: <http://trac.wordpress.org/ticket/2930>
WordPress Trac <http://wordpress.org/>
WordPress blogging software
    
    
More information about the wp-trac
mailing list