Using x.co with Twitter Tools in WordPress
So the other day GoDaddy.com released it’s new URL shortener x.co. They’ve also built in an API, so from that, we can now use the Twitter Tools WordPress plugin with the x.co URL Shortener. I’ve hacked together a file based off the Twitter Tools bit.ly plugin that works in conjunction with the main Twitter Tools plugin without any issues that I’ve noticed so far. For now you need to do the following:
- An account with x.co (which is the same as a GoDaddy.com account)
- Install Twitter Tools for WordPress
- Download this .zip file and extract it into wp-content/plugins/
- Activate the Twitter Tools – x.co URLs plugin from your plugins list
- Login to your x.co account and click on the ‘Settings’ tab, copy down your API Key.
- From the ‘Settings’ menu select ‘Twitter Tools’ and you will need to enter your X.co API Key.
- That’s it, you are ready to tweet your posts with x.co shortened URLs!
If you have any feedback let me know and I’d be glad to see what I can do to help you out. I will try and get this up on WordPress.org within the next day or two for installation directly in your WordPress admin area.
When I first got into WordPress development, I had no idea how the Core of WordPress was designed. I knew that I wanted my snippet of code to fire at a specific time, but short of hacking it into the theme I was using at the time, I had no clue how to achieve this. It was then that I discovered the Hooks of WordPress. Think of WordPress’ Hooks as the OnRamp to the rendering of your WordPress based site. Your code will sit dormant until the moment the Hook you have ‘Hooked’ fires, then your code will jump in and be executed.