I have updated my Post to FriendFeed WordPress Plugin to v1.0
New Features
The following are the new features that I have added to the Plugin
Pluggable Filters
I have added the following filters to the Plugin which can be hooked by your own code.
- post2ff_blog_url – The link which will be posted to Friendfeed
- post2ff_blog_excerpt – The excerpt that will be posted as the first comment to Friendfeed
- post2ff_blog_images – The images that will be posted to Friendfeed
The following code example explains how you can use bit.ly (or any url shortening service) to shorten the link that will be posted to Friendfeed.
add_filter(‘post2ff_blog_url’,’your_plugin_short_url’);
function your_plugin_short_url($url) {
$shorten_url = get_short_url($url);
return $shorten_url;
}
You can place the above code either in your own Plugin or in the functions.php file of your theme. If you want to shorten the url using bit.ly then you can use the code from my other post.
You can use the similar technique to change the excerpt or images, which will be posted to Friendfeed.
Translation
I have added the ability to translate the Plugin. The pot file is available with the Plugin. If you are willing to do translation for the Plugin, use the pot file to create the .po files for your language and let me know. I will add it to the Plugin after giving credit to you.
Update
You can download the latest version of the Plugin form its home page. It is an optional update and doesn’t change anything in the front-end.
Feedback
As usual, if you have any feedback, queries or questions, feel free and leave a comment.