Title: Append User ID
Author: mrdl
Published: <strong>January 16, 2020</strong>
Last modified: January 16, 2020

---

Search plugins

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

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

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

# Append User ID

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

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

 * [Details](https://wordpress.org/plugins/append-user-id/#description)
 * [Reviews](https://wordpress.org/plugins/append-user-id/#reviews)
 *  [Installation](https://wordpress.org/plugins/append-user-id/#installation)
 * [Development](https://wordpress.org/plugins/append-user-id/#developers)

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

## Description

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/>
    ```

## Screenshots

 * [[
 * Frontend view

## Installation

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

## FAQ

  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 );
    ```

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Append User ID” is open source software. The following people have contributed 
to this plugin.

Contributors

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

[Translate “Append User ID” into your language.](https://translate.wordpress.org/projects/wp-plugins/append-user-id)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/append-user-id/), check
out the [SVN repository](https://plugins.svn.wordpress.org/append-user-id/), or 
subscribe to the [development log](https://plugins.trac.wordpress.org/log/append-user-id/)
by [RSS](https://plugins.trac.wordpress.org/log/append-user-id/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.0

 * Initial release.

## Meta

 *  Version **1.0.0**
 *  Last updated **6 years ago**
 *  Active installations **10+**
 *  WordPress version ** 4.0 or higher **
 *  Tested up to **5.3.21**
 *  PHP version ** 5.6 or higher **
 * Tags
 * [string](https://wordpress.org/plugins/tags/string/)[tag](https://wordpress.org/plugins/tags/tag/)
   [url](https://wordpress.org/plugins/tags/url/)[userid](https://wordpress.org/plugins/tags/userid/)
 *  [Advanced View](https://wordpress.org/plugins/append-user-id/advanced/)

## Ratings

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/)

## Contributors

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

## Support

Got something to say? Need help?

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