Redirect WordPress user if not logged in

Quite often I have requirements to redirect users if they are not currently logged in to a site. This could be for numerous reasons, but a popular one would be to redirect all visitors to a coming soon page while allowing admins to login in and view the site. This is accomplished by adding the … Continued

Fix ‘Another Update in Process’ error in WordPress

I recently stumbled upon an issue with updating WordPress.  A brand new install without content, I couldn’t see why I was facing the issue of updating WordPress.  All plugins had updated just fine, but when I went to update WordPress, I saw an ‘Internal Server Error’ message.  Trying the core update again, I was then … Continued

Show WordPress current version and latest version in admin footer

It can be a little annoying when there is a new version of WordPress available and you’re not sure what version your are currently running. Sometimes it’s worth waiting a while after a new major update to see if it brings bugs and it would be worth to know how far behind you are to … Continued

Add new admin user in WordPress from PHPMyAdmin

Similar to another post which does the same thing in OpenCart, here’s how to add a new admin-level user to WordPress – without any access to the wp-admin area. I find this useful when I’m called in to finish off an abandoned website and have no idea what the login credentials are – I’ll simply … Continued

Add new admin user in OpenCart from PHPMyAdmin

A new client project I’m working on requires I duplicate their website, install it on my development server and work on it before transferring it back onto their server once complete. To do this, I need access to the OpenCart admin panel, but I want to keep the existing admin users where they are and … Continued

Call Google’s jQuery Library in Your Template

Why use your own bandwidth when you can use Google’s own! This snippet ensures your WordPress website correctly calls the Google jQuery library direct from Google for speed, security and reliability: NB: Just make sure you use the above with… …in your header file, or wherever your wp_head scripts get called from.

Remove the admin bar from the front-end of WordPress

This little snippet removes the admin bar permanently from all users while logged in and viewing the website from the front-end. Personally, I never use it and always turn it off with this little snippet.