Title: Hum
Author: Will Norris
Published: <strong>2011년 1월 27일</strong>
Last modified: 2026년 8월 21일

---

플러그인 검색

![](https://s.w.org/plugins/geopattern-icon/hum.svg)

# Hum

 작성자: [Will Norris](https://profiles.wordpress.org/willnorris/)

[다운로드](https://downloads.wordpress.org/plugin/hum.1.3.6.zip)

 * [세부사항](https://ko.wordpress.org/plugins/hum/#description)
 * [평가](https://ko.wordpress.org/plugins/hum/#reviews)
 *  [설치](https://ko.wordpress.org/plugins/hum/#installation)
 * [개발](https://ko.wordpress.org/plugins/hum/#developers)

 [지원](https://wordpress.org/support/plugin/hum/)

## 설명

Hum is a personal URL shortener for WordPress, designed to provide short URLs to
your personal content, both hosted on WordPress and elsewhere. For example, rather
than a long URL for a WordPress post such as [http://willnorris.com/2011/01/hum-personal-url-shortener-wordpress](http://willnorris.com/2011/01/hum-personal-url-shortener-wordpress),
you could have a short URL like [http://willnorris.com/b/FJ](http://willnorris.com/b/FJ).
Additionally, if you have a custom domain for short URLs, you can shorten things
further like [http://wjn.me/b/FJ](http://wjn.me/b/FJ). Once the plugin is enabled,
the shortlink for a page or post can be found in the “Shortlink” item in the WordPress
Admin Bar.

WordPress post IDs are shortened using the [NewBase60](http://ttk.me/w/NewBase60)
encoding scheme which is specifically optimized for brevity and readability, with
built-in error correction for commonly confused characters like ‘1’, ‘l’, and ‘I’.

Hum is not designed as a general purpose URL shortener along the lines of [http://bit.ly](http://bit.ly)
or [http://goo.gl](http://goo.gl). Rather, it is specifically intended as a personal
shortener for your own content.

Read more about the reasoning for a personal URL shortener at [Tantek Celik](http://tantek.com/)‘
s page for [Whistle](http://ttk.me/w/Whistle), which served as the inspiration for
Hum.

### Developer Documentation

### Adding your Amazon Affiliate ID

If you’d like to include your Amazone Affiliate ID in the `/i/` redirect URLs, implement
the `amazon_affiliate_id` filter. For example:

    ```
    add_filter('amazon_affiliate_id', fn() => "willnorris-20");
    ```

### Additional Local Types

Out of the box, Hum only registers the `b`, `t`, `a` and `p` prefix to be served
locally by WordPress. If you would like to register additional prefixes, implement
the `hum_local_types` filter. For example, to include ‘p’ as well for photos:

    ```
    function myplugin_hum_local_types( $types ) {
      $types[] = 'p';
      return $types;
    }
    add_filter('hum_local_types', 'myplugin_hum_local_types');
    ```

This will tell Hum to serve any `/p/{id}` URLs from WordPress. Additionally, you’ll
want to instruct Hum to use your prefix for that particular content type. Here, 
we’re registering ‘p’ which is normally used for photos.

    ```
    function myplugin_hum_type_prefix( $prefix, $post_id ) {
      $post = get_post( $post_id );

      if ( $post->post_type ## 'attachment' &&
           strpos($post->post_mime_type, 'image') =## 0 ) {
        $prefix = 'p';
      }

      return $prefix;
    }
    add_filter('hum_type_prefix', 'myplugin_hum_type_prefix', 10, 2);
    ```

### Simple Redirect

You can redirect all traffic for a prefix using a single line of PHP my implementing
the `hum_redirect_base_{type}` filter where `{type}` is the prefix to redirect. 
For example, I redirect all `/w/` URLs to wiki.willnorris.com using:

    ```
    add_filter('hum_redirect_base_w', fn() => "http://wiki.willnorris.com/");
    ```

## 설치

Follow the normal instructions for [installing WordPress plugins](https://codex.wordpress.org/Managing_Plugins#Installing_Plugins).

### Using a custom domain

If you have a custom domain you’d like to use with Hum, add it as the ‘Shortlink
Base (URL)’ on the ‘General Settings’ WordPress admin page or define the `HUM_SHORTLINK_BASE`
constant in your `wp-config.php`:

    ```
    define('HUM_SHORTLINK_BASE', 'http://wjn.me');
    ```

You will also need to setup your short domain to redirect to your normal domain.
Many domain registrars provide free redirection services that work well for this,
so you don’t need to setup a new domain with your web host. Just make sure that 
you are **not** using an iframe style redirect.

## FAQ

### What types of content does Hum support?

Out of the box, Hum will provide shortlinks for any content locally hosted on WordPress.
Most shortlinks will use the `b` type prefix, with the exception of posts with a‘
status’ [post format](https://codex.wordpress.org/Post_Formats), which have shortlinks
using the `t` type prefix. For example:

 * [http://wjn.me/b/FJ](http://wjn.me/b/FJ)
 * [http://wjn.me/t/FR](http://wjn.me/t/FR)

Additionally, the `i` type prefix, along with one of four subtypes, is supported
as follows:

 * `asin` or `a` for Amazon ASIN numbers
 * `isbn` or `i` for ISBN numbers

All `i` URLs are redirected to Amazon.com. For example:

 * [http://wjn.me/i/a/B003QP4NPE](http://wjn.me/i/a/B003QP4NPE)

Additional type prefixes can be registered to serve WordPress hosted content or 
to redirect to an external service. See more in the developer documentation.

### Redirects are not working and result in a 404.

This can happen if the rewrite rules were not flushed. This most likely happens 
if you are using Hum on a Multisite. This can be fixed by flushing the rewrite rules,
just go to Settings->Permalinks and hit `Save Changes` on each instance where Hum
does not work as intended.

## 후기

![](https://secure.gravatar.com/avatar/2cc5e11ed02595d733664ce9536033395d3c79625159868a225998212719da5c?
s=60&d=retro&r=g)

### 󠀁[great plugin, great support](https://wordpress.org/support/topic/great-plugin-great-support-1896/)󠁿

 [airplanenoise](https://profiles.wordpress.org/airplanenoise/) 2024년 7월 15일 
답글 1개

responsive developer, helpful and listening. plugin works. great little add on for
branding.

![](https://secure.gravatar.com/avatar/4902e2e355b79d625c24b9b70dc3db777a8c64254fb00fc280b90593ea805b53?
s=60&d=retro&r=g)

### 󠀁[Nice shorter](https://wordpress.org/support/topic/nice-shorter/)󠁿

 [ferrie=differentieel](https://profiles.wordpress.org/researcher/) 2024년 2월 9
일

Nice slick URL shorter – well done – and thank you for developing this one

![](https://secure.gravatar.com/avatar/b386c3be63ad40515532f06f0a3f8fc3c5a9c760da75708f03eff64f35cd66d4?
s=60&d=retro&r=g)

### 󠀁[Works perfectly](https://wordpress.org/support/topic/works-perfectly-2128/)󠁿

 [shawfactor](https://profiles.wordpress.org/shawfactor/) 2020년 11월 13일

Fantastic pluginthat works perfectly and is actively developed.

![](https://secure.gravatar.com/avatar/dc102eb3aa545e3aec7ab9b6f96c79948143517561214a4c9b75cb93ecc236d6?
s=60&d=retro&r=g)

### 󠀁[Mükemmel 🙏](https://wordpress.org/support/topic/mukemmel-%f0%9f%99%8f/)󠁿

 [Genc Medya](https://profiles.wordpress.org/gnckampus/) 2020년 8월 2일

Tek dosya ile işi çözmüş, bu mükemmel bir eklenti olmuş, bir sürü ücretli eklentiyi
denedim bunun yaptığını yapmıyor. teşekkür ederim Tantek Çelik 🙏 ve plugin yapımcısı
arkadaş 🙏

![](https://secure.gravatar.com/avatar/b25f5d8b3bb8ed7f1f1e5e47d33c6b947e630ae718512d9ec304c533073ff1b7?
s=60&d=retro&r=g)

### 󠀁[Perfect!](https://wordpress.org/support/topic/perfect-6733/)󠁿

 [hostbizro](https://profiles.wordpress.org/hostbizro/) 2019년 12월 30일

Perfect!

![](https://secure.gravatar.com/avatar/00c65a039ec11504e8950c7e0812d7090fff8e3052d4e40e86f14e90b37a22a4?
s=60&d=retro&r=g)

### 󠀁[Works with 5.3](https://wordpress.org/support/topic/works-with-5-3/)󠁿

 [Robert](https://profiles.wordpress.org/metbril/) 2019년 11월 17일 답글 1개

Tested plugin with WP 5.3. Still working just fine.

 [ 모든 8 평가 읽기 ](https://wordpress.org/support/plugin/hum/reviews/)

## 기여자 & 개발자

“Hum”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

 *   [ Will Norris ](https://profiles.wordpress.org/willnorris/)
 *   [ Matthias Pfefferle ](https://profiles.wordpress.org/pfefferle/)

“Hum”(이)가 3 개 언어로 번역되었습니다. 기여해 주셔서 [번역자](https://translate.wordpress.org/projects/wp-plugins/hum/contributors)
님께 감사드립니다.

[자국어로 “Hum”(을)를 번역하세요.](https://translate.wordpress.org/projects/wp-plugins/hum)

### 개발에 관심이 있으십니까?

[코드 탐색하기](https://plugins.trac.wordpress.org/browser/hum/)는, [SVN 저장소](https://plugins.svn.wordpress.org/hum/)
를 확인하시거나, [개발 기록](https://plugins.trac.wordpress.org/log/hum/)을 [RSS](https://plugins.trac.wordpress.org/log/hum/?limit=100&mode=stop_on_copy&format=rss)
로 구독하세요.

## 변경이력

Project maintined on github at [willnorris/wordpress-hum](https://github.com/willnorris/wordpress-hum).

### 1.3.6

 * optimized Block Editor integration

### 1.3.5

 * update JS dependencies and code

### 1.3.4

 * fix broken `wp_get_shortlink` hook, when loaded in the frontend

### 1.3.3

 * fix PHP warning in combination with widgets

### 1.3.2

 * update documentation

### 1.3.1

 * change the priority of the rewrite rules action

### 1.3.0

 * redirect types are now also filterable

### 1.2.8

 * add shortlink panel to block editor (props [@florianbrinkmann](https://profiles.wordpress.org/florianbrinkmann/))

### 1.2.7

 * redirect only known types (see [#wp180868](https://wordpress.org/support/topic/causing-404-on-category-tag-pages/))

[full changelog](https://github.com/willnorris/wordpress-hum/compare/1.2.6...1.2.7)

### 1.2.6

 * fix PHP 7.4 deprecation warning
 * WordPress coding style changes

[full changelog](https://github.com/willnorris/wordpress-hum/compare/1.2.5...1.2.6)

### 1.2.5

 * add shortlink to post/page overview pages

[full changelog](https://github.com/willnorris/wordpress-hum/compare/1.2.4...1.2.5)

### 1.2.4

 * finally fixed “flush rewrite rules”

[full changelog](https://github.com/willnorris/wordpress-hum/compare/1.2.3...1.2.4)

### 1.2.3

 * fixed “flush rewrite rules”

[full changelog](https://github.com/willnorris/wordpress-hum/compare/1.2.2...1.2.3)

### 1.2.2

 * version bump

[full changelog](https://github.com/willnorris/wordpress-hum/compare/1.2.1...1.2.2)

### 1.2.1

 * add `amazon_domain` filter, to support different countries
 * add `hum_process_redirect` action, to overwrite default rewrite method (see [#17](https://github.com/willnorris/wordpress-hum/pull/17))

[full changelog](https://github.com/willnorris/wordpress-hum/compare/1.2...1.2.1)

### 1.2

 * move link post format to use ‘t’ prefix instead of ‘h’ and add support for
    image
   post format
 * add support for WordPress media attachments
 * add shortlinks to Atom feeds
 * add support for legacy short url schemes (see [#6](https://github.com/willnorris/wordpress-hum/issues/6))
 * switch to using WordPress filters instead of actions for hum extensions (see
   
   [#3](https://github.com/willnorris/wordpress-hum/issues/3))

[full changelog](https://github.com/willnorris/wordpress-hum/compare/1.1...1.2)

### 1.1

 * allow custom domain to be configured using `HUM_SHORTLINK_BASE` constant or
    
   via the General Settings admin page.
 * strip some punctuation at the end of URLs (see [#4](https://github.com/willnorris/wordpress-hum/issues/4))
 * smarter URL matching (see [#1](https://github.com/willnorris/wordpress-hum/issues/1)
   and [#2](https://github.com/willnorris/wordpress-hum/issues/2))
 * add support for `/i/` URLs (redirects to Amazon for ASIN or ISBN
    identifiers,
   optionally including an Amazon affiliate ID)
 * standard 404 handling if hum can’t find a proper redirect
 * add new `hum_local_types` filter for registering other prefixes thatt are
    served
   locally by WordPress
 * reduce extra redirect for local content

[full changelog](https://github.com/willnorris/wordpress-hum/compare/1.0...1.1)

### 1.0

 * initial public release

## 커뮤니티 플러그인

이 플러그인은 커뮤니티에서 개발 및 지원합니다. [이 플러그인에 기여하기](https://github.com/pfefferle/wordpress-hum)

## 기초

 *  버전 **1.3.6**
 *  최근 업데이트: **6일 전**
 *  활성화된 설치 **600+**
 *  워드프레스 버전 ** 3.0 또는 그 이상 **
 *  다음까지 시험됨: **7.1**
 *  PHP 버전 ** 7.4 또는 그 이상 **
 *  언어
 * [Dutch](https://nl.wordpress.org/plugins/hum/), [English (US)](https://wordpress.org/plugins/hum/),
   [German](https://de.wordpress.org/plugins/hum/), 그리고 [Swedish](https://sv.wordpress.org/plugins/hum/).
 *  [자국어로 번역하기](https://translate.wordpress.org/projects/wp-plugins/hum)
 * 태그:
 * [diso](https://ko.wordpress.org/plugins/tags/diso/)[shortlink](https://ko.wordpress.org/plugins/tags/shortlink/)
 *  [고급 보기](https://ko.wordpress.org/plugins/hum/advanced/)

## 평점

 별 5점 만점에 5점.

 *  [  8/5-별점 후기     ](https://wordpress.org/support/plugin/hum/reviews/?filter=5)
 *  [  0/4-별점 후기     ](https://wordpress.org/support/plugin/hum/reviews/?filter=4)
 *  [  0/3-별점 후기     ](https://wordpress.org/support/plugin/hum/reviews/?filter=3)
 *  [  0/2-별점 후기     ](https://wordpress.org/support/plugin/hum/reviews/?filter=2)
 *  [  0/1-별점 후기     ](https://wordpress.org/support/plugin/hum/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/hum/reviews/#new-post)

[모든  리뷰 보기](https://wordpress.org/support/plugin/hum/reviews/)

## 기여자

 *   [ Will Norris ](https://profiles.wordpress.org/willnorris/)
 *   [ Matthias Pfefferle ](https://profiles.wordpress.org/pfefferle/)

## 지원

할 말 있으신가요? 도움이 필요하신가요?

 [지원 포럼 보기](https://wordpress.org/support/plugin/hum/)