Per Søderlind

I code for fun

WordPress Twitter Widget Pro with mentions

Added support for GET statuses/mentions_timeline. The user can select, in the widget and shortcode, if he wants to display mentions or not (default = false). Mentions are merged into GET statuses/user_timeline and the merged timeline is sorted on created_at Here's some of changes [diff] - $response = $this->_wp_twitter_oauth->send_authed_request( 'statuses/user_timeline', 'GET', $parameters ); -...

WordPress - Hook into another hook

This is a hack, so if you know a better way of doing this please tell me. I wanted to add a filter to get_permalink, but only when get_permalink was called from a function in another plugin. Here's the function I wanted to hook into, it's part of the Digg...

WordPress Debug Bar, List Script & Style Dependencies

We all know that when we're add a script or style to WordPress, we should use wp_enqueue_script( $handle, $src, $deps, $ver, $in_footer ) and wp_enqueue_style( $handle, $src, $deps, $ver, $media ) as in: <br /> function themeslug_enqueue_style() {<br /> wp_enqueue_style( 'core', 'style.css', array('twentytwelve-style') );<br /> }</p> <p>function themeslug_enqueue_script() {<br />...

Debug WordPress with Sublime Text 2 and XDebug

XDebug installation Run the Xdebug wizard and follow the instructions.I develop on Mac OS X Mountain Lion, and phpize complained that autoconf is missing. Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable is set correctly and then rerun this script. Luckily Sebastien has the recipe on how to...

Relocating my WordPress plugins to GitHub

I'm, slowly .. literally, git svn is sooo slow , copying my plugins to GitHub. I'm using my svn2git.sh bash script to do the job. I'll use the GitHub repositories during development, and publish my plugins in the WordPress Plugin Directory

CloudFlare API and WordPress

CloudFlare protects and accelerates any website online. Once your website is a part of the CloudFlare community, its web traffic is routed through our intelligent global network. We automatically optimize the delivery of your web pages so your visitors get the fastest page load times and best performance. We also...

MemCachier backend for the WP Object Cache

I have a test site at AppFog running WordPress. Being the geek I am, I had to test MemCachier (you'll find it in AppFog Add-Ons) MemCachier manages and scales clusters of memcache servers so you can focus on your app. Memcache is commonly used to speed up page load time and increase...

WordPress and Pow

Here is my second take on running WordPress and WordPress Multisite locally on my Mac (first is here). I just discovered Pow; "Pow is a zero-config Rack server for Mac OS X. Have it serving your apps locally in under a minute", and my first thought was "can I run WordPress on Pow?"....

WordPress plugins and permalinks, how to use pretty links in your plugin

I'm working on a plugin, Read Offline, and one of the wishes was for url friendly links. After intensive googling, here's how I did it: "My Permalink Demo" plugin: <br /> &lt;?php<br /> /*<br /> Plugin Name: My Permalink Demo<br /> Plugin URI: https://soderlind.no/archives/2012/11/01/wordpress-plugins-and-permalinks-how-to-use-pretty-links-in-your-plugin/<br /> Description: Demo plugin to show...