lucasstarbuck (February 23rd, 2011)
 overriding functions
 overriding functions
				
// get the last login date for a user
function appthemes_get_last_login($user_id) {
    $last_login = get_user_meta($user_id, 'last_login', true);
    $date_format = get_option('date_format') . ' ' . get_option('time_format');
    $the_last_login = mysql2date($date_format, $last_login, false);
    echo $the_last_login;
} 
if ( ! function_exists( 'appthemes_get_last_login' ) ):
   // ... code of the function ...
endif; 

lucasstarbuck (February 23rd, 2011)
There are currently 1 users browsing this thread. (0 members and 1 guests)