private function get_transient_expiration( $name, $is_site_transient = false, $human_readable = false ) {
		if ( $is_site_transient ) {
			if ( is_multisite() ) {
				$expiration = (int) get_site_option( '_site_transient_timeout_' . $name );
			} else {
				$expiration = (int) get_option( '_site_transient_timeout_' . $name );
			}
		} else {
			$expiration = (int) get_option( '_transient_timeout_' . $name );
		}

		if ( 0 === $expiration ) {
			return $human_readable ? 'never expires' : 'false';
		}

		if ( ! $human_readable ) {
			return $expiration;
		}

		$now = time();

		if ( $now > $expiration ) {
			return 'expired';
		}

		return human_time_diff( $now, $expiration );
	}
private function get_transient_expiration( $name, $is_site_transient = false, $human_readable = false ) {
		if ( $is_site_transient ) {
			if ( is_multisite() ) {
				$expiration = (int) get_site_option( '_site_transient_timeout_' . $name );
			} else {
				$expiration = (int) get_option( '_site_transient_timeout_' . $name );
			}
		} else {
			$expiration = (int) get_option( '_transient_timeout_' . $name );
		}

		if ( 0 === $expiration ) {
			return $human_readable ? 'never expires' : 'false';
		}

		if ( ! $human_readable ) {
			return $expiration;
		}

		$now = time();

		if ( $now > $expiration ) {
			return 'expired';
		}

		return human_time_diff( $now, $expiration );
	}
private function get_transient_expiration ( $ name , $ is_site_transient = false , $ human_readable = false ) { if ( $ is_site_transient ) { if ( is_multisite ( ) ) { $ expiration = ( int ) get_site_option ( '_site_transient_timeout_' . $ name ) ; } else { $ expiration = ( int ) get_option ( '_site_transient_timeout_' . $ name ) ; } } else { $ expiration = ( int ) get_option ( '_transient_timeout_' . $ name ) ; } if ( 0 === $ expiration ) { return $ human_readable ? 'never expires' : 'false' ; } if ( ! $ human_readable ) { return $ expiration ; } $ now = time ( ) ; if ( $ now > $ expiration ) { return 'expired' ; } return human_time_diff ( $ now , $ expiration ) ; }
Retrieves the expiration time.

@param string $name              Transient name.
@param bool   $is_site_transient Optional. Whether this is a site transient. Default false.
@param bool   $human_readable    Optional. Whether to return the difference between now and the
expiration time in a human-readable format. Default false.
@return string Expiration time string.
Retrieves the expiration time .