{"id":116023,"date":"2020-01-16T11:28:07","date_gmt":"2020-01-16T11:28:07","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/append-user-id\/"},"modified":"2020-01-16T11:28:07","modified_gmt":"2020-01-16T11:28:07","slug":"append-user-id","status":"publish","type":"plugin","link":"https:\/\/ibo.wordpress.org\/plugins\/append-user-id\/","author":14170515,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.0","stable_tag":"1.0.0","tested":"5.3.21","requires":"4.0","requires_php":"5.6","requires_plugins":"","header_name":"Append User ID","header_author":"Andy Mardell","header_description":"Adds shortcode to append the current user ID to a link (href).","assets_banners_color":"c6c6c6","last_updated":"2020-01-16 11:28:07","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"http:\/\/mardell.me","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1212,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"2228344","resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"2228344","resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":"2228344","resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":"2228344","resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"2228344","resolution":"1","location":"assets","locale":""}},"screenshots":{"1":"Frontend view","2":"Backend view"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[180813,17768,90,538,16940],"plugin_category":[57],"plugin_contributors":[179525],"plugin_business_model":[],"class_list":["post-116023","plugin","type-plugin","status-publish","hentry","plugin_tags-currentuserid","plugin_tags-string","plugin_tags-tag","plugin_tags-url","plugin_tags-userid","plugin_category-taxonomy","plugin_contributors-mardellme","plugin_committers-mardellme"],"banners":{"banner":"https:\/\/ps.w.org\/append-user-id\/assets\/banner-772x250.png?rev=2228344","banner_2x":"https:\/\/ps.w.org\/append-user-id\/assets\/banner-1544x500.png?rev=2228344","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/append-user-id\/assets\/icon-128x128.png?rev=2228344","icon_2x":"https:\/\/ps.w.org\/append-user-id\/assets\/icon-256x256.png?rev=2228344","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/append-user-id\/assets\/screenshot-1.png?rev=2228344","caption":"Frontend view"}],"raw_content":"<!--section=description-->\n<p>Adds the current logged in user ID to a specified string<\/p>\n\n<pre><code>[user_link url=\"https:\/\/domain.com\/link\"]A link[\/user_link]\n<\/code><\/pre>\n\n<p>Will output the following HTML<\/p>\n\n<pre><code>&lt;a href=\"https:\/\/domain.com\/link?user_id=1\"&gt;A link&lt;a\/&gt;\n<\/code><\/pre>\n\n<!--section=installation-->\n<p>This section describes how to install the plugin and get it working.<\/p>\n\n<ol>\n<li>Upload the plugin files to the <code>\/wp-content\/plugins\/append-user-id<\/code> directory, or install the plugin through the WordPress plugins screen directly.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>How do I change the HTML output?<\/dt>\n<dd><p>There are a few filters available to override certain parts of the output. The\nmain filter is <code>append_id_content<\/code> and can be used as follows:<\/p>\n\n<pre><code>\/**\n * Change HTML output\n *\/\n function your_theme_append_id_content ( $html, $url, $content ) {\n    $link_html = '&lt;a id=\"your_id\" href=\"' . esc_url( $url ) . '\"&gt;';\n    $link_html .= esc_html( $content );\n    $link_html .= '&lt;\/a&gt;';\n\n    return $link_html;\n }\n add_filter( 'append_id_content', 'your_theme_append_id_content', 10, 3 );\n<\/code><\/pre><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"A plugin which adds some shortcode to append the current user ID to a link (href).","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ibo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/116023","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ibo.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ibo.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=116023"}],"author":[{"embeddable":true,"href":"https:\/\/ibo.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/mardellme"}],"wp:attachment":[{"href":"https:\/\/ibo.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=116023"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ibo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=116023"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ibo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=116023"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ibo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=116023"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ibo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=116023"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ibo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=116023"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}