How to Load jQuery from Google CDN

WordPress load its own copy of jQuery into your theme. But there are some advantages loading jQuery from google CDN.

Paste the code given below into your functions.php:

function load_googlecdn_jquery() {
	if (!is_admin()) {
		wp_deregister_script('jquery');
		wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js', false, '1.8.3');
		wp_enqueue_script('jquery');
	}
}
add_action('wp_enqueue_scripts', 'load_googlecdn_jquery');

How to Enable WordPress Error Reporting

Don’t do this for your live site, highly recommended only for local development and testing.

Find this in wp-config.php:

define('WP_DEBUG', false);

Change it to:

// define('WP_DEBUG', false);

Now add this code after that:

// Enable WP_DEBUG mode
define('WP_DEBUG', true);

// Enable Debug logging to the /wp-content/debug.log file
define('WP_DEBUG_LOG', true);

// Disable display of errors and warnings 
define('WP_DEBUG_DISPLAY', false);
@ini_set('display_errors',0);

// Use dev versions of core JS and CSS files (only needed if you are modifying these core files)
define('SCRIPT_DEBUG', true);

How to Disable Automatic Updates in WordPress

To disable automatic updates in your WordPress site, add this code in to the wp-config.php:

define('WP_AUTO_UPDATE_CORE', false);