Title: Append User ID
Author: mrdl
Published: <strong>2020年1月16日</strong>
Last modified: 2020年1月16日

---

搜尋外掛

![](https://ps.w.org/append-user-id/assets/banner-772x250.png?rev=2228344)

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://ps.w.org/append-user-id/assets/icon-256x256.png?rev=2228344)

# Append User ID

 由[mrdl](https://profiles.wordpress.org/mardellme/)

[下載](https://downloads.wordpress.org/plugin/append-user-id.1.0.0.zip)

 * [詳情](https://zh-hk.wordpress.org/plugins/append-user-id/#description)
 * [評價](https://zh-hk.wordpress.org/plugins/append-user-id/#reviews)
 *  [安裝](https://zh-hk.wordpress.org/plugins/append-user-id/#installation)
 * [開發](https://zh-hk.wordpress.org/plugins/append-user-id/#developers)

 [支援](https://wordpress.org/support/plugin/append-user-id/)

## 描述

Adds the current logged in user ID to a specified string

    ```
    [user_link url="https://domain.com/link"]A link[/user_link]
    ```

Will output the following HTML

    ```
    <a href="https://domain.com/link?user_id=1">A link<a/>
    ```

## 螢幕截圖

 * [[
 * Frontend view

## 安裝

This section describes how to install the plugin and get it working.

 1. Upload the plugin files to the `/wp-content/plugins/append-user-id` directory, 
    or install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress

## 常見問題

  How do I change the HTML output?

There are a few filters available to override certain parts of the output. The
 
main filter is `append_id_content` and can be used as follows:

    ```
    /**
     * Change HTML output
     */
     function your_theme_append_id_content ( $html, $url, $content ) {
        $link_html = '<a id="your_id" href="' . esc_url( $url ) . '">';
        $link_html .= esc_html( $content );
        $link_html .= '</a>';

        return $link_html;
     }
     add_filter( 'append_id_content', 'your_theme_append_id_content', 10, 3 );
    ```

## 評價

There are no reviews for this plugin.

## 貢獻者及開發者

“Append User ID” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

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

[將 Append User ID 外掛本地化為台灣繁體中文版。](https://translate.wordpress.org/projects/wp-plugins/append-user-id)

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

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

## 修改日誌

#### 1.0.0

 * Initial release.

## 其它

 *  Version **1.0.0**
 *  Last updated **6 年之前**
 *  Active installations **10+**
 *  WordPress version ** 4.0 or higher **
 *  Tested up to **5.3.21**
 *  PHP version ** 5.6 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/append-user-id/)
 * Tags
 * [string](https://zh-hk.wordpress.org/plugins/tags/string/)[tag](https://zh-hk.wordpress.org/plugins/tags/tag/)
   [url](https://zh-hk.wordpress.org/plugins/tags/url/)[userid](https://zh-hk.wordpress.org/plugins/tags/userid/)
 *  [進階顯示](https://zh-hk.wordpress.org/plugins/append-user-id/advanced/)

## 評分

No reviews have been submitted yet.

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

[See all reviews](https://wordpress.org/support/plugin/append-user-id/reviews/)

## 貢獻者

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

## 支援

有話想說？需要協助？

 [檢視支援論壇](https://wordpress.org/support/plugin/append-user-id/)