Auto Login New User After Registration WordPress plugin

Auto Login New User After Registration WordPress plugin v1.5.4 now available!

Automatically login new user right after they have registered. Add Password field to registration form. Disable admin notification emails of new user registrations and user password resets. Allow redirect of new user to any page right after they have registered.

This plugin has the following great features:

– Auto-login: When a new user registers, this will automatically log them in right away.

– Redirect: Choose the web page you want them to be redirected too after they register and are auto-logged in.

– Independent option to add Password field to new user registration form, so users can create their password during registration instead of having to wait for an email and clicking the link in the email.

– Independent option to disable the annoying admin notification emails about new user registrations. User will still receive their email about how to setup their password.

– Independent option to disable the annoying admin notification emails about users lost/changed password. User will still receive their email about how to reset their password.

WordPress Cron Job setup with WP-Cron.php

When setting up a cron job for WordPress we need to address a few issues. Do you really need to worry about setting up a separate cron job? Once you set it up, how do you stop it from sending you an email everytime? And once you set it up, how do you stop it from filling up your server with files?


So the issue is, that by default, everytime somebody views a page on your WordPress site, the wp-cron job is run. This is not really an issue if you have less than 60 page views per hour (or 1 page view per minute). When you have a low traffic site, then there is not much else going on that wp-cron can interfere with. However IF you are getting more that 60 page views per hour, then it can start to become a much bigger issue and really slow your site down.

Lets consider an example where you are a high traffic site getting about 3,000 page views per hour (50 page views per minute). This would mean that wp-cron is being called and run for every single page view, meaning its being called and run 3000 times an hour. What if you get 30,000 page views per hour? Well now it is really interfering and causing a problem.


There are a multitude of sites that will teach you how to setup a cron job, so I will not go into all the details here. I will only briefly give you the two methods that you can use with their command line argument that you need.

Disbable wp-cron on page view

Regardless of which method you use, you will need to disable the wp-cron from running everytime somebody views a page on your site. You will need to edit your wp-config.php file and add the following lines at the top of the file. You can actually add them anywhere in the file really, just as long as they are after the  <?php  tag on the first line.

//Disable internal wp-cron function - setup external cron job instead.
define('DISABLE_WP_CRON', true);

Method #1 – WGET (recommended for WordPress)

The preferred way to setup an external cron job for WordPress is to use the WGET method. Make sure you include the --delete-after option otherwise your server will fill up with thousands of files named wp-cron.php.1 , wp-cron.php.2 , etc.

Use this line:
wget --delete-after

If this method keeps sending you an email everytime it runs, then you can stop the email by sending the output to a file instead with the --output-file option. This will only ever create one small file on your server as it will overwrite itself each time and will therefore not get big.

Use this line:
wget --output-file=cronlog_wp-cron.txt --delete-after

Method #2 – PHP Command Line Tool

The other method is to use the PHP Command Line tool from the cron. This is usually my preferred way to setup most cron jobs, however this creates an error in the WordPress wp-cron.php file where a require_once fails to load wp-load.php so it is not recommended.

Use this line:
/usr/local/bin/php -f /home/myroot/public_html/wp-cron.php

You may have to ask your web host where the php command line tool is located and adjust the /usr/local/bin/php accordingly. Also, you may have to ask your web host what your /myroot/ should be as well.

And if this method keeps sending you an email everytime it runs, then you can stop the email by sending the output to /dev/null instead.

Use this line:
/usr/local/bin/php -f /home/myroot/public_html/wp-cron.php > /dev/null


Please let me know if this was helpful by commenting below.

Best WordPress Plugins

Here is a list of my favorite and what I consider the best wordpress plugins available.

Antispam Bee by Sergej Muller

AVH Extended Categories Widget by Peter van der Does

Bad Behavior by Michael Hampton

Better WP Security by Bit51

Contact Form DB by Michael Simpson

Drop Shadow Boxes by Steven Henty

Fast Secure Contact Form by Mike Challis

Ozh’ Admin Drop Down Menu by Ozh

PC Custom CSS by Peter Coughlin

Show Hide Author by Michael Spyratos

Slideshow by StefanBoonstra

Swerve by MKDO Ltd.

TW Disable Revisions by Igor Vuckovic

TW Recent Posts Widget by Igor Vuckovic

Widget Logic by Alan Trewartha

WP-PluginsUsed by Lester GamerZ Chan

XYZ WP Newsletter by

WordPress Change Theme CSS in Real-Time

Have you ever wanted to change your WordPress theme CSS in real-time so you can see exactly what your changes are doing as you make them? What about being able to actually apply those changes quickly so you can override the existing CSS of the theme?

Well I found this great post about how to use Firebug add-on for Firefox and the PC Custom CSS plugin for WordPress so you can make live theme changes and apply them almost instantly:

This post saved me a ton of time! Enjoy.

My Favorite WordPress Plugins

Just want to give a shout out to my favorite WordPress plugins. Here they are, in no particular order:

Bad Behavior –
Prevents spam without having to use CAPTCHA.

BM Custom Login – 
Customize your WordPress login screen.

Developer Formatter – 
Uses GeSHi server-side highlighting to display your code in a post.

Fast Secure Contact Form – 
Contact form. 

HTML Purified – 
Replaces default HTML filters. 

Link Indication – 
Open external links in new window. 

Ozh’ Admin Drop Down Menu – 
A much better Admin menu plugin. 

Sociable for WordPress 3.0 – 
Let people easily link to your post thru social networks. 

the_excerpt Reloaded – 
A much better excerpt plugin for your posts. 

WP-PageNavi – 
Page navigation. 

WYSIWYG Inline Code Command – 
Easily add inline code to your post.

Permalinks and Categories Paging Problem: Page Navigation Fix

I started using WordPress at about version 2.5 and when I customized my permalinks, I had a problem when there was more than one page. Only the first page of posts would display, and clicking Previous or Next to all other pages showed up as “404 sorry, nothing found!” The paging problem has something to with WordPress thinking that /page/ is a sub-category name as opposed to being a reference to a specific page.

So here is a very small plugin that attempts to fix the problem:

Click here to download the WP-PageNavigation Fix plugin.

I remember for sure that it worked in WP v2.7 and 2.8 but have not tested it on any other older versions, although it should probably work without a problem. The problem does not seem to be present in WP v3+ so I have not needed to use the plugin anymore since upgrading, but maybe somebody else has come across the problem.

Thanks to Doug Smith at