Title: Erdo Draft Links
Author: erdincbulat
Published: <strong>2026 年 6 月 1 日</strong>
Last modified: 2026 年 6 月 1 日

---

搜尋外掛

![](https://ps.w.org/erdo-draft-links/assets/banner-772x250.png?rev=3556422)

![](https://ps.w.org/erdo-draft-links/assets/icon-256x256.png?rev=3556422)

# Erdo Draft Links

 由 [erdincbulat](https://profiles.wordpress.org/erdincbulat/) 開發

[下載](https://downloads.wordpress.org/plugin/erdo-draft-links.1.0.1.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/erdo-draft-links/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/erdo-draft-links/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/erdo-draft-links/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/erdo-draft-links/#developers)

 [技術支援](https://wordpress.org/support/plugin/erdo-draft-links/)

## 外掛說明

**Erdo Draft Links** lets you generate a secure, token-based URL for any draft, 
private, or published post or page. Share it with clients, reviewers, or collaborators—
they can read the content without needing a WordPress account.

Think of it like Google Docs’ “Anyone with the link can view” — but for WordPress.

#### How it works

 1. Open any post or page in the editor (Block Editor or Classic Editor).
 2. Click **“Generate Draft Link”** in the sidebar panel or meta box.
 3. Choose an expiry: 24 hours, 48 hours, 7 days, or never.
 4. Share the link. Recipients can view the content — no login needed.

#### Features

 * Works with both the **Block Editor (Gutenberg)** and the **Classic Editor**
 * Supports **posts**, **pages**, and any custom post type via a filter
 * Secure **32-character cryptographic tokens** — brute-force resistant
 * Configurable expiry: 24 hours, 48 hours, 7 days, or no expiry
 * **View count** tracking per link
 * **Revoke or regenerate** any link at any time
 * Tokens are stored **hashed** in the database — raw tokens are never stored after
   the redirect
 * Two-step flow: token URL  cookie  clean permalink (token never appears in browser
   history)
 * No external API calls, no phone-home, no subscriptions
 * Translation-ready (English default, Turkish included)

#### Developer Notes

Developers can add support for custom post types using the `erdo_draft_links_supported_post_types`
filter:

    ```
    add_filter( 'erdo_draft_links_supported_post_types', function( $types ) {
        $types[] = 'product';
        return $types;
    } );
    ```

#### Source Code

The full source code including build tools is included in the plugin’s `assets/js/
src/` directory.

## 螢幕擷圖

 * [[
 * Erdo Draft Links panel in the Block Editor sidebar — generate, copy, and manage
   your link.
 * [[
 * Erdo Draft Links meta box in the Classic Editor — same functionality, same REST
   API.
 * [[
 * Draft post viewed via Erdo Draft Links by a non-logged-in visitor.

## 安裝方式

 1. Upload the `erdo-draft-links` folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the **Plugins** menu in WordPress.
 3. Open any post or page and find the **Erdo Draft Links** panel in the editor sidebar
    or meta box.

## 常見問題集

### Does this work with custom post types?

Yes. By default Erdo Draft Links supports posts and pages. Add more post types using
the `erdo_draft_links_supported_post_types` filter.

### Is the shared link secure?

Yes. Tokens are 32 characters of cryptographic randomness generated by WordPress’s
built-in `wp_generate_password`. The raw token appears in the URL only once — subsequent
visits use a signed HttpOnly cookie. Tokens are stored as SHA-256 HMAC hashes in
the database.

### What happens when a link expires?

The recipient sees a clear message: “This draft link has expired and is no longer
accessible.” The post remains a draft — nothing is published.

### Can I have multiple active links for the same post?

Currently one active link per post. Regenerating creates a new token and resets 
the view count.

### Does this work with password-protected posts?

No. Erdo Draft Links is designed for draft and private posts. Password-protected
posts use WordPress’s own mechanism.

### Does this plugin affect site performance?

Erdo Draft Links only runs on requests that include a `?erdo_token=` parameter or
a valid session cookie. Normal site traffic is not affected.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈Erdo Draft Links〉的開發相關工作。

參與者

 *   [ erdincbulat ](https://profiles.wordpress.org/erdincbulat/)

〈Erdo Draft Links〉外掛目前已有 1 個本地化語言版本。 感謝[全部譯者](https://translate.wordpress.org/projects/wp-plugins/erdo-draft-links/contributors)
為這個外掛做出的貢獻。

[將〈Erdo Draft Links〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/erdo-draft-links)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/erdo-draft-links/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/erdo-draft-links/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/erdo-draft-links/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/erdo-draft-links/)。

## 變更記錄

#### 1.0.1

 * Fix: Replace deprecated `current_time('timestamp')` with `time()` for correct
   UTC handling.

#### 1.0.0

 * Initial release.

## 中繼資料

 *  版本 **1.0.1**
 *  最後更新 **5 天前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 6.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **7.0**
 *  PHP 版本需求 ** 7.4 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/erdo-draft-links/) 及 [Turkish](https://tr.wordpress.org/plugins/erdo-draft-links/).
 *  [將這個外掛本地化為你的母語版本](https://translate.wordpress.org/projects/wp-plugins/erdo-draft-links)
 * 標籤:
 * [draft](https://tw.wordpress.org/plugins/tags/draft/)[link](https://tw.wordpress.org/plugins/tags/link/)
   [preview](https://tw.wordpress.org/plugins/tags/preview/)[private](https://tw.wordpress.org/plugins/tags/private/)
   [share](https://tw.wordpress.org/plugins/tags/share/)
 *  [進階檢視](https://tw.wordpress.org/plugins/erdo-draft-links/advanced/)

## 評分

這個項目尚無任何評論記錄。

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

[查看全部使用者評論](https://wordpress.org/support/plugin/erdo-draft-links/reviews/)

## 參與者

 *   [ erdincbulat ](https://profiles.wordpress.org/erdincbulat/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/erdo-draft-links/)