[buddypress-trac] [BuddyPress] #2782: bp_core_time_since override

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Tue Dec 7 14:24:56 UTC 2010


#2782: bp_core_time_since override
-------------------------+--------------------------------------------------
 Reporter:  aesqe        |       Owner:                 
     Type:  enhancement  |      Status:  new            
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Core         |     Version:  1.3            
 Keywords:  time         |  
-------------------------+--------------------------------------------------
 add a filter right at the beginning of bp_core_time_since function so it
 can be overridden by a custom one, or wrap it in function_exists.

 something like this


 {{{
 $filter = apply_filters('bp_core_time_since', '', $older_date,
 $newer_date);

 if( '' != $filter )
         return $filter;
 }}}

 thanks :)

-- 
Ticket URL: <http://trac.buddypress.org/ticket/2782>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list