How to Better Control WordPress Cron Jobs?

To disable WordPress Cron Jobs, place this in wp-config.php: define(‘DISABLE_WP_CRON’, true); To schedule a cron job in Linux with cPanel for example… This is the command you might run: wget -q -O – http://www.your-domain.org/wp-cron.php?doing_wp_cron >/dev/null 2>&1 The end of the above command just suppresses any output. Just pick the interval of your choice for setting … Read more

Load testing for WordPress functionality

You can use a tool like loadimpact.com to generate load, include following user scripts, for a huge number of users. However, as with anything like this, it doesn’t come free. We’ve just used it, so far, for simple load testing of user views as that’s been our biggest issue with sites. We wrote an article … Read more

Extra themes – ok or bad?

Any extra code on your server is a theoretical security risk. Instead of checking each plugin and theme if they are security risk even if they are not active, it is much easier to just delete them. This of course should not prevent you from backuping them first in case you will decide that you … Read more

Loading scripts on specific page

method two won’t work because no page is loaded yet and $post isn’t set when your if check runs. with method one again $post is not yet set at that point, but this method will work if you use WordPress conditionals: function load_slider(){ if( is_page(11746) ){ // Load slider on home page wp_register_script(‘start-slidorion’, get_bloginfo(‘stylesheet_directory’) . … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)