Disable WordPress from linking images by default

Are you sick of WordPress linking images by default, making them clickable? Yeah, me too.

Add the following to functions.php.

The exact file location is:

/wp-content/themes/<theme>/functions.php

add_action('pre_option_image_default_link_type', 'always_link_images_to_none');
 function always_link_images_to_none() {
 return 'none';
 }

non-clickable-image