Bitly URL Shortener

Bitly URL Shortener

توسط

Bitly URL Shortener (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.

Bitly URL Shortener allows you to connect your WordPress Website to the Bitly API via access token and Group GUID.

Features

  • Generate Bitly link automatically when publishing posts without leaving your site.
  • Share Bitly link from your Post List and Post Edit page with social share buttons.
  • Gutenberg block for displaying social share icons (Facebook, LinkedIn, X/Twitter, Telegram, WhatsApp).
  • Support for Custom Post Types with option to choose from your list of post types.
  • Support for Custom Bitly Domain (for paid Bitly plans).
  • Generate Bitly link of your old posts with just one click from post list.
  • WP-CLI support for bulk generating short links via command line.
  • REST API endpoints for programmatic access to short URL generation.
  • Post column in admin showing generated short URLs.
  • Metabox in post edit page for quick access to short URL and share options.
  • Optimized code with modern PHP 7.4+ features and proper error handling.

Terms of Use

This is not an official plugin of https://bitly.com

This plugin only connects your https://bitly.com account to your WordPress site.

Please read privacy and terms of service of Bitly before using this plugin.

Bug reports

Bug reports for Bitly URL Shortener are welcomed in our Bitly URL Shortener repository on GitHub. Please note that GitHub is not a support forum, and that issues that are not properly qualified as bugs will be closed.

Further Reading

For more info on Bitly and Codehaveli, check out the following:

  1. Visit the plugins page within your dashboard and select Add New
  2. Search for Bitly URL Shortener
  3. Activate Bitly URL Shortener from your Plugins page
  4. Go to Tools > Codehaveli Bitly from your WordPress admin menu
  5. Get your access token from https://bitly.com and save it in the access token field
  6. Click on Get GUID button if you don’t have the Group GUID (the plugin will retrieve it from your Bitly account via API call)
  7. (Optional) Enter your custom Bitly domain if you’re on a paid plan
  8. (Optional) Select which post types should automatically generate Bitly links
  9. (Optional) Enable social share buttons if you want to display share options
  10. You’re ready to go! From now on, whenever you publish a post, your Bitly link will be generated automatically

سوالات متداول

How to get the short link of a post?

Use the get_wbitly_short_url() function in your theme or plugin:

$link = get_wbitly_short_url($post_id); // Returns short URL or false

If no post ID is provided, it will use the current post in the loop:

$link = get_wbitly_short_url(); // Uses current post

How to use the Gutenberg block?
  1. In the block editor, search for “Bitly Share Icons” block
  2. Add the block to your post or page
  3. Customize which social icons to display (Facebook, LinkedIn, X/Twitter, Telegram, WhatsApp)
  4. Adjust icon size and styling as needed
How to generate short links via WP-CLI?

The plugin includes WP-CLI support. Use the following commands:

wp wbitly generate --all - Generate shortlinks for all published posts
wp wbitly generate --ids=1,2,3 - Generate for specific post IDs
wp wbitly generate --first=10 - Generate for first 10 posts
wp wbitly generate --all --post_type=page - Generate for all pages

How to use the REST API?

The plugin provides REST API endpoints:

  • POST /wp-json/wbitly/v1/generate/{post_id} – Generate short URL for a post
  • GET /wp-json/wbitly/v1/meta/{post_id} – Get existing short URL for a post

Both endpoints require authentication and appropriate permissions. You need to:
* Be logged in as a user with edit_posts capability
* Include a valid WordPress nonce in the request header (X-WP-Nonce)

×
نظری برای این آیتم موجود نیست.
0 0 رای ها
امتیازدهی
اشتراک در
اطلاع از
0 نظرات
قدیمی‌ترین
تازه‌ترین بیشترین رأی
بازخورد (Feedback) های اینلاین
مشاهده همه دیدگاه ها
نسخه حجم فایل SHA256 تغییرات دانلود
1.5.1 77 کیلوبایت -
دانلود
×
★★★★★
★★★★★
5.0 /5 (5 نظر)

قیمت:

رایگان

نگارش

1.5.1

آخرین انتشار

15 اردیبهشت 1405

آخرین بروزرسانی

2 ماه پیش

نصب های فعال

600+

نگارش وردپرس

وردپرس 5.6+

تست شده از نسخه

وردپرس 6.9.4

نگارش PHP

PHP 7.4+

نسخه ها

1 نسخه