Last active
April 17, 2018 11:34
-
-
Save flabernardez/e7e489769c727efdfc73e64a83320927 to your computer and use it in GitHub Desktop.
#wordpress Quitar enlaces imágenes por defecto
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 fla_imagelink_setup() { | |
$image_set = get_option( 'image_default_link_type' ); | |
if ($image_set !== 'none') { | |
update_option('image_default_link_type', 'none'); | |
} | |
} | |
add_action('admin_init', 'fla_imagelink_setup', 10); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment