{"id":274505,"date":"2026-01-26T14:16:59","date_gmt":"2026-01-26T14:16:59","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/url-shortener-by-melk\/"},"modified":"2026-01-26T16:37:09","modified_gmt":"2026-01-26T16:37:09","slug":"url-shortener-by-melk","status":"publish","type":"plugin","link":"https:\/\/ast.wordpress.org\/plugins\/url-shortener-by-melk\/","author":15179011,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.0","stable_tag":"1.0.0","tested":"6.9.4","requires":"5.0","requires_php":"7.4","requires_plugins":null,"header_name":"URL Shortener by Melk","header_author":"Melksedeque Silva","header_description":"Crie URLs curtas para posts, p\u00e1ginas, categorias, tags e custom post types do seu WordPress.","assets_banners_color":"241a33","last_updated":"2026-01-26 16:37:09","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/Melksedeque\/plugin-url-shortener-wordpress","header_author_uri":"https:\/\/github.com\/Melksedeque","rating":0,"author_block_rating":0,"active_installs":0,"downloads":135,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"melksedeque","date":"2026-01-26 16:37:09"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-256x256.png":{"filename":"icon-256x256.png","revision":3447222,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":3447222,"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":3447222,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3447222,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3447222,"resolution":"3","location":"assets","locale":""}},"screenshots":{"1":"Admin settings page where you can choose post types and taxonomies.","2":"Quick copy button in the posts list table.","3":"Bulk generation tool for existing content."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2662,925,186,544,5530],"plugin_category":[55,59],"plugin_contributors":[254672],"plugin_business_model":[],"class_list":["post-274505","plugin","type-plugin","status-publish","hentry","plugin_tags-permalink","plugin_tags-redirection","plugin_tags-seo","plugin_tags-shortlink","plugin_tags-url-shortener","plugin_category-seo-and-marketing","plugin_category-utilities-and-tools","plugin_contributors-melksedeque","plugin_committers-melksedeque"],"banners":{"banner":"https:\/\/ps.w.org\/url-shortener-by-melk\/assets\/banner-772x250.png?rev=3447222","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/url-shortener-by-melk\/assets\/icon-256x256.png?rev=3447222","icon_2x":"https:\/\/ps.w.org\/url-shortener-by-melk\/assets\/icon-256x256.png?rev=3447222","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/url-shortener-by-melk\/assets\/screenshot-1.png?rev=3447222","caption":"Admin settings page where you can choose post types and taxonomies."},{"src":"https:\/\/ps.w.org\/url-shortener-by-melk\/assets\/screenshot-2.png?rev=3447222","caption":"Quick copy button in the posts list table."},{"src":"https:\/\/ps.w.org\/url-shortener-by-melk\/assets\/screenshot-3.png?rev=3447222","caption":"Bulk generation tool for existing content."}],"raw_content":"<!--section=description-->\n<p><strong>URL Shortener by Melk<\/strong> is a lightweight and efficient WordPress plugin that allows you to automatically generate short URLs for your posts, pages, categories, tags, and Custom Post Types. Ideal for sharing on social media and marketing materials.<\/p>\n\n<p><strong>Features:<\/strong><\/p>\n\n<ul>\n<li><strong>Automatic Generation:<\/strong> Automatically creates short URLs when publishing new posts.<\/li>\n<li><strong>Comprehensive Support:<\/strong> Works with Posts, Pages, Categories, Tags, and Custom Post Types.<\/li>\n<li><strong>Quick Copy:<\/strong> \"Copy\" button directly in the post\/term listing in the admin panel.<\/li>\n<li><strong>Bulk Generation:<\/strong> Tool to generate short URLs for old content with one click.<\/li>\n<li><strong>Performance:<\/strong> Fast redirection using native WordPress rewrite rules (no heavy queries).<\/li>\n<li><strong>Secure:<\/strong> Validated and secure code, following WordPress best practices.<\/li>\n<\/ul>\n\n<h3>Developer Notes<\/h3>\n\n<ul>\n<li>Namespace: <code>Melk\\\\UrlShortenerByMelk<\/code>.<\/li>\n<li>Unique prefix: all functions, options, meta keys and hooks use the <code>urlshbym_<\/code> prefix, following the WordPress Plugin Handbook recommendations to avoid naming collisions.<\/li>\n<li>Options stored in the database:\n\n<ul>\n<li><code>urlshbym_enabled_post_types<\/code><\/li>\n<li><code>urlshbym_enabled_taxonomies<\/code><\/li>\n<\/ul><\/li>\n<li>Meta keys:\n\n<ul>\n<li><code>_urlshbym_short_code<\/code> on posts<\/li>\n<li><code>_urlshbym_short_code<\/code> on terms (taxonomies)<\/li>\n<\/ul><\/li>\n<li>Database table: <code>{$wpdb-&gt;prefix}urlshbym_short_urls<\/code> is created on activation to store the mapping between short codes and objects.<\/li>\n<li>Main hook:\n\n<ul>\n<li><code>urlshbym_short_url_clicked<\/code> \u2014 fired whenever a short URL is accessed, receiving the short code and the internal record ID.<\/li>\n<\/ul><\/li>\n<li>Rewrite rules: short URLs are handled through a rewrite rule that maps patterns like <code>\/abc12<\/code> to <code>index.php?urlshbym_short=abc12<\/code>.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>url-shortener<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>Go to <strong>Settings &gt; URL Shortener<\/strong> to adjust preferences.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20the%20plugin%20work%20with%20custom%20post%20types%3F\"><h3>Does the plugin work with Custom Post Types?<\/h3><\/dt>\n<dd><p>Yes! You can enable which post types you want to generate short URLs for in the plugin settings.<\/p><\/dd>\n<dt id=\"how%20are%20urls%20generated%3F\"><h3>How are URLs generated?<\/h3><\/dt>\n<dd><p>We use a secure Base62 algorithm to create short and unique strings (e.g., <code>abc12<\/code>) based on the post ID.<\/p><\/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":"Create short URLs for your WordPress posts, pages, categories, tags, and custom post types automatically.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/274505","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=274505"}],"author":[{"embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/melksedeque"}],"wp:attachment":[{"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=274505"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=274505"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=274505"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=274505"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=274505"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=274505"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}