=== Codehaveli Bitly URL Shortener ===
Contributors: codehaveli
Tags: short url , bitly, url shortener, Wordpress Post , connector
Requires at least: 4.0
Tested up to: 5.4.1
Stable tag: trunk
Requires PHP: 5.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Codehaveli Bitly URL Shortener is  the missing URL shortener for Wordpress

== Description ==

**Codehaveli Bitly URL Shortener** allow you to connect your WordPress Website to the https://bitly.com/ account via access code.

This Plugin enables Bitly User to generate short link automatically from Wordpress when they publish new post. 

This plugin use the functionality of **Bitly API** and generate short link and also get your group Guid from your Bitly account [During Your Settings ].




### Terms of Use 

This is not a Official plugin of [Bitly](https://bitly.com)

This plugin only connect your [https://bitly.com](https://bitly.com) account to WordPress.

Please read [privacy](https://bitly.com/pages/privacy) and [terms of service](https://bitly.com/pages/terms-of-service) of [Bitly](https://bitly.com) before using this plugin.



### Bug reports

Bug reports for Codehaveli Bitly URL Shortener are welcomed in our Codehaveli Bitly URL Shortener [repository on GitHub](https://github.com/codehaveli/codehaveli-bitly-url-shortener). 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:

* [Codehaveli](https://bit.ly/2A8QyGt) official homepage.
* Bitly Access Token Generate Process from [Codehaveli Blog](https://bit.ly/2X1Hvjz)
* Bitly [API Documentation](https://bitly.is/2XxT9BN) 
* Follow Codehaveli on [Facebook](https://www.facebook.com/codehaveli), [Instagram](https://www.instagram.com/codehaveli/) & [Twitter](https://twitter.com/codehaveli).





== Installation ==

1. Visit the plugins page within your dashboard and select Add New
1. Search for **Codehaveli Bitly URL Shortener**
1. Activate Codehaveli Bitly URL Shortener from your Plugins page.
1. Go to settings from Tools Menu or Settings fromm WordPress Plugin list
1. Get Your access token from  [https://bitly.com](https://bitly.com) and save it in access token field
1. Click on Get GUID if you don't have the Group GUID. [Plugin will get it from your bitly account via API call]
1. You are ready to go, From now when ever you publish a post your link will be generate automatically



== Frequently Asked Questions ==

= How can i change the URL before the shorten process? =

```
<?php
add_filter('wbitly_url_before_process' , 'modify_permalink_of_post' , 10 , 1);
function modify_permalink_of_post($permalink){
	return $permalink;
}
?>
```

You can use 'wbitly_url_before_process'  filter to change the URL/Permalink. Call back function accepts the permalink.

= How can i hook into the generated URL? =

```
<?php
add_action('wbitly_shorturl_updated' , 'post_to_other' , 10 , 1);
function post_to_other($url){
 // do anything with $url
}
?>
```
We can use the hook to do get the short url and use it accordingly


== Screenshots ==
1. Settings Panel Screenshot
2. You can go to settings from Plugn list settings
3. Generated URL column in post list


== Changelog ==

== 1.0 ==
Initaial Release


