By

*NEW* Theme Sneek Peek

Facade Responsive WordPress Theme
We’ve just finished our latest theme WordPress theme, Façade. Yay! We are now working hard behind the scenes getting it ready for final release but we couldn’t resist giving you a sneek peek in the mean-time!

Read More

By

How To Translate Your WordPress Theme Into Any Language

Want to find out how easy it is to translate your WordPress theme into any language? Then read on…

Read More

By

*Updated Plugin* To Do List

After languishing in the WordPress.org Plugin repository for almost three years the To Do List Plugin has finally been updated! In fact it has been completely rewritten and is now fully compatible with the latest version of WordPress (3.4 at the time of writing).

This major update is pretty much what I had in mind for the original version of the Plugin. So, what’s new?
Read More

By

*New Plugin* Config Constants

Most people never need to edit the WordPress constants in wp-config.php but if you do then up until now there was no alternative but to edit the file manually.

However, the Config Constants Plugin changes this by allowing you to modify a select set of WordPress constants directly from the WordPress admin!

The Plugin options page looks like this:

You can only modify constants that are already defined in wp-cofig.php so you remain in full control of your configuration file at all times.
Read More

By

Designfolio, Our NEW Fully Responsive WordPress Theme!

Designfolio WordPress Theme

Designfolio Pro is our brand new WordPress theme that has more features then you can shake a stick at, including three custom post types (Portfolio, Slider, and Testimonial)!

It has been months in the making and we are very excited to finally announce its release. It is a fully responsive portfolio theme for designers and creatives and looks great on all devices too (desktop, tablet, mobile phone)!

Rather than list all the features here why not take a look at the dedicated Designfolio Pro page for detailed theme information.

Also, be sure to check out the Designfolio Pro live demo yourself, and take it for a spin. Be sure to let us know what you think!

By

Introducing CoachPro Our New WordPress Theme!

CoachPro WordPress Theme

We are excited to announce the release of our latest theme, CoachPro. It is designed to appeal directly to personal development coaches, and is an easy & affordable way to get your coaching website online straight away!

CoachPro is packed with features, and comes with 8 pre-made skins which you can switch between with just a single mouse click. This also includes skinning of the Twitter widget for the first time in our themes.

Why check out the CoachPro live demo yourself, and take it for a spin. Be sure to let us know what you think!

Or, check out the CoachPro information page for detailed theme information.

By

What Motivates Us?

Well that’s an excellent question! What does motivate us to keep on developing great WordPress themes and provide dedicated support for all our users?

There are many factors really but one of the most satisfying reasons is getting positive customer feedback. Whilst many of our customers thank us in the forums for getting timely help with their sites, one recent message stood out in particular.

Jan, and Ingvild, from Peppy Fitness e-mailed us specifically to thank us for helping them get their site up and running. You can check out the great work they have done on their site here, which is based on our FitPro theme.

The e-mail we received from Jan, and Ingvild, was as follows:

Dear Scott and David,

Our website www.peppyfitness.com has now been up and running for a while with the Fitpro theme. The major hurdles have been passed, and we can now enjoy adding posts and pages without spending too much time on technical details (although we do have do upgrade to the new version soon).

So, we would like to take the opportunity to thank you both for your outstanding help and patience and quick response time while we were setting up our site over the past months. We’re very pleased and feel we have been in the good hands of two very skilled people (and their team).

We’ve had many questions, and you’ve always answered professionally to the most unprofessional of questions :-) .

Thank you for making it so easy for us to recommend your services and themes to others!

Kind regards,
Jan Helge and Ingvild Ostensen

This sort of feedback is exactly what motivates us to get out of bed in the morning and to continue developing awesome themes! So, many thanks for the kind words Jan, we really appreciate it. Good luck with your site in the future and you know where we are if you need any further help! ;)

By

*New* FitX WordPress Theme Launched!

FitX Fitness WordPress Theme

We are excited to announce the release of our latest theme, FitX. It is our second fitness theme after the success of our very popular FitPro theme.

FitX is a vibrant new theme with lots of great features, you can see a demo of it here.

Some people asked what is the difference between FitPro and FitX? Well, FitX has everything FitPro has, and more. It is built a little differently, more modern features like HTML5, a new rotating testimonial feature, easily change fonts, a custom sidebar feature, and cool custom graphics.

Plus, we have a great new quick start feature included in FitX which is perfect for new sites. Upon theme activation you have the option to setup some default content including new pages (About Us, Contact Us, Blog, Sitemap), and a navigation menu etc.

Click here to check out the full FitX details!

By

FitPro 2.3 Released, Here are the New Features

We have just released the latest version of our fitness WordPress theme, FitPro. The new version (2.3) includes many improvements and bug fixes under the hood, but also some significant updates to existing features.

Thanks to our members who gave us feedback, many of the things you requested are in this release!
Read More

By

Deactivating a WordPress Plugin Automatically

With every release of WordPress there are so many cool new features to play with. This usually a good thing but one downside is that if you want to incorporate them straightaway into your Plugin it can break versions of WordPress that haven’t upgraded yet.

I had exactly this issue when adding some new code to my Plugin Options Starter Kit Plugin.

I added two new text areas to the Plugin options form that use the built-in WordPress editor. This is made possible by the fantastic wp_editor() function, which is only available in WordPress 3.3 (see my post on this function here). However, a lot of users who are already running this Plugin may not have upgraded to WordPress 3.3 (when it is released) by the time I post the Plugin update on WordPress.org.

So where does this leave you? How can you safeguard against Plugin incompatibility with a users version of WordPress. You could insert a simple die() function, but we can do better than that!

Check out the code below that generates the above message, safely deactivates the incompatible Plugin, and provides a convenient link back to the WordPress admin.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
function posk_requires_wordpress_version() {
	global $wp_version;
	$plugin = plugin_basename( __FILE__ );
	$plugin_data = get_plugin_data( __FILE__, false );
	$require_wp = "3.5";
 
	if ( version_compare( $wp_version, $require_wp, "<" ) ) {
		if( is_plugin_active($plugin) ) {
			deactivate_plugins( $plugin );
			wp_die( "<strong>".$plugin_data['Name']."</strong> requires <strong>WordPress ".$require_wp."</strong> or higher, and has been deactivated! Please upgrade WordPress and try again.<br /><br />Back to the WordPress <a href='".get_admin_url(null, 'plugins.php')."'>Plugins page</a>." );
		}
	}
}
add_action( 'admin_init', 'posk_requires_wordpress_version' );

So, what’s going on here?

First, we grab the current version of WordPress stored in the global $wp_version variable. Next, we have two lines of code to store the plugin folder/filename, and the name of the Plugin itself.

Now for the important bit. We use version_compare() to check we are running WordPress 3.3 or higher. If you want to check for a different version just change ’3.3′ to a different value. If your installed version of WordPress is not compatible with the Plugin then we can go ahead and deactivate the Plugin, output a message, and halt the script.

Let’s check our Plugin is actually activated before we try to deactivate anything. We do this with the is_plugin_active() function. We need to pass in the Plugin folder and filename, which we stored in $plugin earlier. A value of true will be passed back if the Plugin is active.

Once we have confirmation that we can go ahead and deactivate our Plugin we just need to call the deactivate_plugins() function and pass it $plugin. This will actually deactivate the Plugin. The final step is to just call wp_die() with a suitable message. I have also added a link back to the WordPress admin for convenience.

You may be wondering why I am adding the code to a function and triggering it via the ‘admin_init’ action hook. Why not just add it outside of a function at the top of the Plugin file?

This is because of the is_plugin_active() function. If you try to call it outside of a function somewhere in your Plugin file, then it won’t have been defined by WordPress yet and a fatal ‘Call to undefined function’ error will be generated. This will also happen if you try to hook the function too early. Try replacing the ‘admin_init’ hook with ‘plugins_loaded’ instead to see what I mean. As long as you hook the function with ‘admin_init’ though everything should be fine.

The function is generic enough to be dropped into any existing Plugin and work right out of the box (neat huh?). The only thing you might need to adjust is the version of WordPress you want to test against.

I hope you find this code snippet useful. As usual let me know what you think in the comments.