Do Not Link Inserted Images by Default
Sets the default "Link to" option for images inserted in the classic editor and galleries to None instead of the media file.
Opens WPIDE on
Code
add_filter( 'pre_option_image_default_link_type', function () {
return 'none';
} );
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.