{"id":121993,"date":"2020-05-26T12:04:00","date_gmt":"2020-05-26T12:04:00","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/bitly-url-shortener\/"},"modified":"2026-01-29T14:56:17","modified_gmt":"2026-01-29T14:56:17","slug":"codehaveli-bitly-url-shortener","status":"publish","type":"plugin","link":"https:\/\/fuc.wordpress.org\/plugins\/codehaveli-bitly-url-shortener\/","author":17954861,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.5.1","stable_tag":"1.5.1","tested":"6.9.4","requires":"5.6","requires_php":"7.4","requires_plugins":null,"header_name":"Bitly URL Shortener","header_author":"Codehaveli, Rakesh Roy","header_description":"This Plugin is used for shorten the newly published post url, Plugin use the api functionality of  https:\/\/bitly.com\/  to achive this URL shorten process.","assets_banners_color":"ab7a89","last_updated":"2026-01-29 14:56:17","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/paypalme\/royrakesh92","header_plugin_uri":"https:\/\/github.com\/royrakesh\/codehaveli-bitly-url-shortener","header_author_uri":"https:\/\/www.codehaveli.com\/","rating":5,"author_block_rating":0,"active_installs":600,"downloads":15039,"num_ratings":5,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0":{"tag":"1.0","author":"codehaveli","date":"2020-05-26 12:11:27"},"1.1":{"tag":"1.1","author":"codehaveli","date":"2020-06-29 15:06:30"},"1.1.1":{"tag":"1.1.1","author":"codehaveli","date":"2020-08-27 08:29:29"},"1.1.2":{"tag":"1.1.2","author":"codehaveli","date":"2020-09-27 14:06:06"},"1.1.3":{"tag":"1.1.3","author":"codehaveli","date":"2020-09-28 05:33:15"},"1.1.4":{"tag":"1.1.4","author":"codehaveli","date":"2020-11-22 17:51:28"},"1.2.1":{"tag":"1.2.1","author":"codehaveli","date":"2021-02-09 10:14:40"},"1.2.2":{"tag":"1.2.2","author":"codehaveli","date":"2021-03-26 08:06:32"},"1.3.1":{"tag":"1.3.1","author":"codehaveli","date":"2022-07-01 16:25:44"},"1.3.2":{"tag":"1.3.2","author":"codehaveli","date":"2023-09-08 17:29:28"},"1.3.3":{"tag":"1.3.3","author":"royrakesh","date":"2024-10-27 16:20:55"},"1.4.1":{"tag":"1.4.1","author":"royrakesh","date":"2025-06-15 02:28:51"},"1.5.0":{"tag":"1.5.0","author":"royrakesh","date":"2026-01-29 10:20:10"},"1.5.1":{"tag":"1.5.1","author":"royrakesh","date":"2026-01-29 14:56:17"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":5},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3449453,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3449453,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3449453,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3449453,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":{"codehaveli\/wbitly-share-icons":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","apiVersion":3,"name":"codehaveli\/wbitly-share-icons","version":"0.1.0","title":"Bitly Share Icons","category":"widgets","icon":"share","description":"Block for displaying Bitly share icons.","keywords":["bitly","share","social","icons"],"example":{},"supports":{"html":false,"align":true,"alignWide":false,"spacing":{"margin":true,"padding":true},"color":{"background":false,"text":false}},"textdomain":"wbitly","editorScript":"file:.\/index.js","editorStyle":"file:.\/index.css","style":"file:.\/style-index.css","render":"file:.\/render.php","viewScript":"file:.\/view.js","attributes":{"showIcons":{"type":"array","default":["facebook","linkedin","x","telegram","whatsapp"]},"iconSize":{"type":"string","default":"50"},"customSize":{"type":"number","default":24},"fillColor":{"type":"string","default":null}}}},"tagged_versions":["1.0","1.1","1.1.1","1.1.2","1.1.3","1.1.4","1.2.1","1.2.2","1.3.1","1.3.2","1.3.3","1.4.1","1.5.0","1.5.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3449453,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3449453,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3449453,"resolution":"3","location":"assets","locale":""},"screenshot-5.png":{"filename":"screenshot-5.png","revision":3449453,"resolution":"5","location":"assets","locale":""},"screenshot-6.png":{"filename":"screenshot-6.png","revision":3449453,"resolution":"6","location":"assets","locale":""}},"screenshots":{"1":"Settings Panel - Configure your Bitly API credentials and options","2":"Settings access from Tools menu or plugin list","3":"Generated URL column in post list showing short links","4":"Share button in post list for quick sharing","5":"Custom Post type selection checkboxes","6":"Social share icons block in Gutenberg editor","7":"Metabox in post edit page with short URL and share options","8":"Copy short link from front end"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[3159,25308,86,137,5530],"plugin_category":[59],"plugin_contributors":[186320,233732],"plugin_business_model":[],"class_list":["post-121993","plugin","type-plugin","status-publish","hentry","plugin_tags-bitly","plugin_tags-connector","plugin_tags-post","plugin_tags-short-url","plugin_tags-url-shortener","plugin_category-utilities-and-tools","plugin_contributors-codehaveli","plugin_contributors-royrakesh","plugin_committers-codehaveli","plugin_committers-royrakesh","plugin_support_reps-codehaveli","plugin_support_reps-royrakesh"],"banners":{"banner":"https:\/\/ps.w.org\/codehaveli-bitly-url-shortener\/assets\/banner-772x250.png?rev=3449453","banner_2x":"https:\/\/ps.w.org\/codehaveli-bitly-url-shortener\/assets\/banner-1544x500.png?rev=3449453","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/codehaveli-bitly-url-shortener\/assets\/icon-128x128.png?rev=3449453","icon_2x":"https:\/\/ps.w.org\/codehaveli-bitly-url-shortener\/assets\/icon-256x256.png?rev=3449453","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/codehaveli-bitly-url-shortener\/assets\/screenshot-1.png?rev=3449453","caption":"Settings Panel - Configure your Bitly API credentials and options"},{"src":"https:\/\/ps.w.org\/codehaveli-bitly-url-shortener\/assets\/screenshot-2.png?rev=3449453","caption":"Settings access from Tools menu or plugin list"},{"src":"https:\/\/ps.w.org\/codehaveli-bitly-url-shortener\/assets\/screenshot-3.png?rev=3449453","caption":"Generated URL column in post list showing short links"},{"src":"https:\/\/ps.w.org\/codehaveli-bitly-url-shortener\/assets\/screenshot-5.png?rev=3449453","caption":"Custom Post type selection checkboxes"},{"src":"https:\/\/ps.w.org\/codehaveli-bitly-url-shortener\/assets\/screenshot-6.png?rev=3449453","caption":"Social share icons block in Gutenberg editor"}],"raw_content":"<!--section=description-->\n<p><strong>Bitly URL Shortener<\/strong> (Previously Codehaveli Bitly URL Shortener) uses the functionality of Bitly API to generate bitly short link automatically from your WordPress dashboard when you publish new post.<\/p>\n\n<p>Bitly URL Shortener allows you to connect your WordPress Website to the Bitly API via access token and Group GUID.<\/p>\n\n<h3>Features<\/h3>\n\n<ul>\n<li>Generate Bitly link automatically when publishing posts without leaving your site.<\/li>\n<li>Share Bitly link from your Post List and Post Edit page with social share buttons.<\/li>\n<li>Gutenberg block for displaying social share icons (Facebook, LinkedIn, X\/Twitter, Telegram, WhatsApp).<\/li>\n<li>Support for Custom Post Types with option to choose from your list of post types.<\/li>\n<li>Support for Custom Bitly Domain (for paid Bitly plans).<\/li>\n<li>Generate Bitly link of your old posts with just one click from post list.<\/li>\n<li>WP-CLI support for bulk generating short links via command line.<\/li>\n<li>REST API endpoints for programmatic access to short URL generation.<\/li>\n<li>Post column in admin showing generated short URLs.<\/li>\n<li>Metabox in post edit page for quick access to short URL and share options.<\/li>\n<li>Optimized code with modern PHP 7.4+ features and proper error handling.<\/li>\n<\/ul>\n\n<h3>Terms of Use<\/h3>\n\n<p>This is not an official plugin of <a href=\"https:\/\/bitly.com\">https:\/\/bitly.com<\/a><\/p>\n\n<p>This plugin only connects your <a href=\"https:\/\/bitly.com\">https:\/\/bitly.com<\/a> account to your WordPress site.<\/p>\n\n<p>Please read <a href=\"https:\/\/bitly.com\/pages\/privacy\">privacy<\/a> and <a href=\"https:\/\/bitly.com\/pages\/terms-of-service\">terms of service<\/a> of <a href=\"https:\/\/bitly.com\">Bitly<\/a> before using this plugin.<\/p>\n\n<h3>Bug reports<\/h3>\n\n<p>Bug reports for Bitly URL Shortener are welcomed in our Bitly URL Shortener <a href=\"https:\/\/github.com\/royrakesh\/codehaveli-bitly-url-shortener\">repository on GitHub<\/a>. Please note that GitHub is not a support forum, and that issues that are not properly qualified as bugs will be closed.<\/p>\n\n<h3>Further Reading<\/h3>\n\n<p>For more info on Bitly and Codehaveli, check out the following:<\/p>\n\n<ul>\n<li><a href=\"https:\/\/www.codehaveli.com\/\">Codehaveli<\/a> official homepage<\/li>\n<li>Read \"How to generate Bitly OAuth access token?\" from <a href=\"https:\/\/www.codehaveli.com\/how-to-generate-bitly-oauth-access-token\/\">Codehaveli Blog<\/a><\/li>\n<li>Bitly <a href=\"https:\/\/bitly.is\/2XxT9BN\">API Documentation<\/a> <\/li>\n<li>Follow Codehaveli on <a href=\"https:\/\/www.facebook.com\/codehaveli\">Facebook<\/a>, <a href=\"https:\/\/www.instagram.com\/codehaveli\/\">Instagram<\/a> &amp; <a href=\"https:\/\/twitter.com\/codehaveli\">Twitter<\/a><\/li>\n<li>Plugin <a href=\"https:\/\/github.com\/royrakesh\/codehaveli-bitly-url-shortener\">GitHub Repository<\/a><\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Visit the plugins page within your dashboard and select Add New<\/li>\n<li>Search for <strong>Bitly URL Shortener<\/strong><\/li>\n<li>Activate Bitly URL Shortener from your Plugins page<\/li>\n<li>Go to <strong>Tools &gt; Codehaveli Bitly<\/strong> from your WordPress admin menu<\/li>\n<li>Get your access token from <a href=\"https:\/\/bitly.com\">https:\/\/bitly.com<\/a> and save it in the access token field\n\n<ul>\n<li>Need help? Check our guide: <a href=\"https:\/\/www.codehaveli.com\/how-to-generate-bitly-oauth-access-token\/\">How to generate Bitly OAuth access token?<\/a><\/li>\n<\/ul><\/li>\n<li>Click on <strong>Get GUID<\/strong> button if you don't have the Group GUID (the plugin will retrieve it from your Bitly account via API call)<\/li>\n<li>(Optional) Enter your custom Bitly domain if you're on a paid plan<\/li>\n<li>(Optional) Select which post types should automatically generate Bitly links<\/li>\n<li>(Optional) Enable social share buttons if you want to display share options<\/li>\n<li>You're ready to go! From now on, whenever you publish a post, your Bitly link will be generated automatically<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"how%20to%20get%20the%20short%20link%20of%20a%20post%3F\"><h3>How to get the short link of a post?<\/h3><\/dt>\n<dd><p>Use the <code>get_wbitly_short_url()<\/code> function in your theme or plugin:<\/p>\n\n<pre><code>$link = get_wbitly_short_url($post_id); \/\/ Returns short URL or false\n<\/code><\/pre>\n\n<p>If no post ID is provided, it will use the current post in the loop:<\/p>\n\n<pre><code>$link = get_wbitly_short_url(); \/\/ Uses current post\n<\/code><\/pre><\/dd>\n<dt id=\"how%20to%20use%20the%20gutenberg%20block%3F\"><h3>How to use the Gutenberg block?<\/h3><\/dt>\n<dd><ol>\n<li>In the block editor, search for \"Bitly Share Icons\" block<\/li>\n<li>Add the block to your post or page<\/li>\n<li>Customize which social icons to display (Facebook, LinkedIn, X\/Twitter, Telegram, WhatsApp)<\/li>\n<li>Adjust icon size and styling as needed<\/li>\n<\/ol><\/dd>\n<dt id=\"how%20to%20generate%20short%20links%20via%20wp-cli%3F\"><h3>How to generate short links via WP-CLI?<\/h3><\/dt>\n<dd><p>The plugin includes WP-CLI support. Use the following commands:<\/p>\n\n<pre><code>wp wbitly generate --all - Generate shortlinks for all published posts\nwp wbitly generate --ids=1,2,3 - Generate for specific post IDs\nwp wbitly generate --first=10 - Generate for first 10 posts\nwp wbitly generate --all --post_type=page - Generate for all pages\n<\/code><\/pre><\/dd>\n<dt id=\"how%20to%20use%20the%20rest%20api%3F\"><h3>How to use the REST API?<\/h3><\/dt>\n<dd><p>The plugin provides REST API endpoints:<\/p>\n\n<ul>\n<li><code>POST \/wp-json\/wbitly\/v1\/generate\/{post_id}<\/code> - Generate short URL for a post<\/li>\n<li><code>GET \/wp-json\/wbitly\/v1\/meta\/{post_id}<\/code> - Get existing short URL for a post<\/li>\n<\/ul>\n\n<p>Both endpoints require authentication and appropriate permissions. You need to:\n* Be logged in as a user with <code>edit_posts<\/code> capability\n* Include a valid WordPress nonce in the request header (<code>X-WP-Nonce<\/code>)<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.5.1<\/h4>\n\n<ul>\n<li>MetaBox issue fixed<\/li>\n<\/ul>\n\n<h4>1.5.0<\/h4>\n\n<ul>\n<li>Added Gutenberg block for social share icons<\/li>\n<li>Added WP-CLI support for bulk generating short links<\/li>\n<li>Added REST API endpoints for programmatic access<\/li>\n<li>Improved code structure with modern PHP 7.4+ features<\/li>\n<li>Enhanced error handling and logging<\/li>\n<li>Updated minimum requirements: PHP 7.4, WordPress 5.6<\/li>\n<li>Improved security with better input validation<\/li>\n<li>Code refactoring and optimization<\/li>\n<\/ul>\n\n<h4>1.4.1<\/h4>\n\n<ul>\n<li>Updated: tested up to value<\/li>\n<li>Security Fix<\/li>\n<li>Updated Twitter logo to X<\/li>\n<li>Refactor ajax code<\/li>\n<\/ul>\n\n<h4>1.3.3<\/h4>\n\n<ul>\n<li>Updated: tested up to value<\/li>\n<\/ul>\n\n<h4>1.3.2<\/h4>\n\n<ul>\n<li>Updated: tested up to value<\/li>\n<li>Add support for <a href=\"https:\/\/wordpress.org\/plugins\/duplicate-post\/\"> Yoast Duplicate Post <\/a><\/li>\n<\/ul>\n\n<h4>1.3.1<\/h4>\n\n<ul>\n<li>PHP Warning: Fixed<\/li>\n<\/ul>\n\n<h4>1.2.2<\/h4>\n\n<ul>\n<li>Name changed from <code>Codehaveli Bitly URL Shortener<\/code> to <code>Bitly URL Shortener<\/code> due to SEO conflict with codehaveli.com <\/li>\n<\/ul>\n\n<h4>1.2.1<\/h4>\n\n<ul>\n<li>Support WordPress Core Shortlinks Filters.<\/li>\n<li>Shortener link from Front end.<\/li>\n<li>Code optimized.<\/li>\n<\/ul>\n\n<h4>1.1.4<\/h4>\n\n<ul>\n<li>Meta Box added in Post Edit Page, now you can share link from your post page<\/li>\n<li>Some security issue fixed.<\/li>\n<\/ul>\n\n<h4>1.1.3<\/h4>\n\n<ul>\n<li>Custom Post Type Selection Added and default set to 'post'.<\/li>\n<li>Small bug fixed<\/li>\n<\/ul>\n\n<h4>1.1.2<\/h4>\n\n<ul>\n<li>Custom Post Type Support Added<\/li>\n<\/ul>\n\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>Versioning fixed. <\/li>\n<li>Code optimized. <\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Option added to share link from post list<\/li>\n<li>Generate old posts link from post list<\/li>\n<li>Function refactored<\/li>\n<li>Error handler added<\/li>\n<li>Some bug fixed<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial Release<\/li>\n<\/ul>","raw_excerpt":"Bitly URL Shortener uses the functionality of Bitly API to generate Bitly short link without leaving your WordPress site.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/fuc.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/121993","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fuc.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/fuc.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/fuc.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=121993"}],"author":[{"embeddable":true,"href":"https:\/\/fuc.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/codehaveli"}],"wp:attachment":[{"href":"https:\/\/fuc.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=121993"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/fuc.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=121993"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/fuc.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=121993"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/fuc.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=121993"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/fuc.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=121993"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/fuc.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=121993"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}