Created
March 5, 2018 04:55
-
-
Save vanquyet94/e2f4e46372e19e6bf23189e3ce6c8b75 to your computer and use it in GitHub Desktop.
Remove Default Image Links in WordPress
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
<?php | |
function voola_imagelink_setup() { | |
update_option('image_default_link_type', 'none'); | |
} | |
add_action('admin_init', 'voola_imagelink_setup', 10); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment