Created
November 21, 2012 16:48
-
-
Save mustardBees/4125978 to your computer and use it in GitHub Desktop.
WordPress: Prevent images from being inserted with a link
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Prevent images from being inserted with a link. | |
* User must specify if they really want to link to the attachment page | |
*/ | |
update_option( 'image_default_link_type', 'none' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment