'; for( $y = date( 'Y', strtotime( '-100 year' ) ); $y <= date( 'Y' ); $y++ ) : if( $y == $user_year ) : $year .= ''; else : $year .= ''; endif; endfor; $year .= ''; $month = ''; $day = ''; $select = $year . ' - ' . $month . ' - ' . $day; return $select; } function birthday_calculation() { $user_birthday = get_user_option( 'user_birthday' ); $today = date('Y-m-d', strtotime( '-17 year' ) ); $days = ( strtotime( $today ) - strtotime( $user_birthday ) ) / ( 60 * 60 * 24 ); return $days; }